restore exception catch in woker run method to maintain old behavior
This commit is contained in:
parent
6ca825e5c5
commit
28d4416953
1 changed files with 6 additions and 2 deletions
|
|
@ -641,8 +641,12 @@ public class Worker implements Runnable {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
initialize();
|
try {
|
||||||
LOG.info("Starting worker loop.");
|
initialize();
|
||||||
|
LOG.info("Starting worker loop.");
|
||||||
|
} catch (RuntimeException e1) {
|
||||||
|
LOG.error("Could not start worker loop as worker is failed to initialize.");
|
||||||
|
}
|
||||||
|
|
||||||
while (!shouldShutdown()) {
|
while (!shouldShutdown()) {
|
||||||
runProcessLoop();
|
runProcessLoop();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue