Skip to content

Catch SystemExit exceptions from command line tools in tasks

Leo P. Singer requested to merge leo-singer/gwcelery:handle-system-exit into master

A common pattern in our Celery tasks is to call the entry point from a Python command line tool. Catch SystemExit exceptions from Python command line tools called Celery tasks and reraise them as RuntimeError exceptions so that do not cause the workers to exit.

Merge request reports