Open DaJansenGit opened 6 years ago
It would be possible if:
sys.exit(your_main_function(...))
and your_main_function returned a 0 for success (this isn't a hard requirement, but if it is missing, your script will always return success unless an Exception
was hit)TASK_FAILED
state was added to disambiguate between task failures and task runner failures (celery failures)submit_script
was updated to pass the returncode
of proc
to the job, and the subsequent signal handling by celery (task_completed
) knew not to change the return valuePRs are always welcome ;)
Refering to the closed #118: Is there a way to set the script status on "error" or something like that (and not "Success") if the script throwed an exception? I found nothing in the issues or documentation except the closed #118 issue. Thanks in advance!