Skip to content

Commit cc0d0d8

Browse files
committed
Log exceptions inside main worker
1 parent 27e4649 commit cc0d0d8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bolt-jobs/bolt/jobs/workers.py

+4
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ def run(self):
6767
except (KeyboardInterrupt, SystemExit):
6868
self.executor.shutdown(wait=True, cancel_futures=True)
6969

70+
except Exception as e:
71+
# Some kind of error in the job system...
72+
logger.exception(e)
73+
7074
def maybe_log_stats(self):
7175
if not self.stats_every:
7276
return

0 commit comments

Comments
 (0)