Created
October 27, 2022 11:14
-
-
Save vranystepan/8d7dc35ff0d23c5a661d51ac90f9af9a to your computer and use it in GitHub Desktop.
This file contains 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
[program:messenger-consume] | |
command=php -d memory_limit=%(ENV_CRON_MEMORY_LIMIT)s /src/bin/console %(ENV_CRON_COMMAND)s --limit=10 | |
user=root | |
numprocs=1 | |
startsecs=0 | |
autostart=true | |
autorestart=true | |
startretries=10 | |
process_name=%(program_name)s_%(process_num)02d |
This file contains 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
cat messenger-worker.conf > /etc/supervisor/conf.d/messenger-worker.conf | |
export CRON_MEMORY_LIMIT=500M | |
export CRON_COMMAND="messenger:consume mail" | |
supervisord -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment