Skip to content
This repository was archived by the owner on Jun 8, 2022. It is now read-only.

Commit 3c1fd55

Browse files
author
aheadley
committed
nice output on keyboard interrupt
1 parent 4d332e1 commit 3c1fd55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

worker.py

+3
Original file line numberDiff line numberDiff line change
@@ -215,5 +215,8 @@ def build(worker, job):
215215
except gearman.errors.ServerUnavailable:
216216
logger.warning('Server disconnected. Trying again')
217217
time.sleep(1)
218+
except KeyboardInterrupt:
219+
logger.info('Exiting...')
220+
break
218221

219222
sys.exit(0)

0 commit comments

Comments
 (0)