Last active
April 25, 2018 19:59
-
-
Save trAve3113r/028b919eb36521a3a222f65dcbfb6e64 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # create this in etc/supervisor/conf.d/task_manager.conf | |
| [program:task_manager] | |
| command=bash -c "echo starting main.huey && sleep $(( $RANDOM / 2500 + 4)) && exec huey_consumer.py main.huey" | |
| environment=PYTHONPATH=%(here)s/.. | |
| numprocs=1 | |
| process_name=%(program_name)s-%(process_num)d | |
| stopwaitsecs=5 | |
| stdout_logfile=%(here)s/huey.log | |
| redirect_stderr=true | |
| # Daemonizig the command: | |
| # supervisorctl reread | |
| # supervisorctl update | |
| # Also see: | |
| # http://nanvel.name/2013/08/huey-celery-alteranive |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment