check program celery-#APP_NAME# with path "/usr/bin/supervisorctl status celery_#APP_NAME# | grep RUNNING" start program "/usr/bin/supervisorctl start celery_#APP_NAME#" stop program "/usr/bin/supervisorctl stop celery_#APP_NAME#" if status != 0 then restart if 5 restarts within 5 cycles then timeout