restore exception catch in woker run method to maintain old behavior

This commit is contained in:
Thuan Duong-Ba 2020-01-20 10:24:07 -08:00
parent 6ca825e5c5
commit 28d4416953

View file

@ -641,8 +641,12 @@ public class Worker implements Runnable {
return;
}
initialize();
LOG.info("Starting worker loop.");
try {
initialize();
LOG.info("Starting worker loop.");
} catch (RuntimeException e1) {
LOG.error("Could not start worker loop as worker is failed to initialize.");
}
while (!shouldShutdown()) {
runProcessLoop();