Inform the user, if a previous "shutdownWorker"-request has been given, in "GeneralController.shutdownWorkerGracefully()"-endpoint.
This commit is contained in:
parent
b98ea92dec
commit
13f56d16c0
|
@ -46,8 +46,14 @@ public class GeneralController {
|
|||
if ( responseEntity != null )
|
||||
return responseEntity;
|
||||
|
||||
shouldShutdownWorker = true;
|
||||
String finalMsg = " The worker will shutdown, after finishing current work.";
|
||||
String finalMsg = "";
|
||||
if ( shouldShutdownWorker )
|
||||
finalMsg = " The worker has already received a \"shutdownWorker\" (which was not canceled afterwards).";
|
||||
else
|
||||
shouldShutdownWorker = true;
|
||||
|
||||
finalMsg += " The worker will shutdown, after finishing current work.";
|
||||
|
||||
logger.info(initMsg + finalMsg);
|
||||
return ResponseEntity.ok().body(finalMsg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue