Created
June 11, 2021 10:26
-
-
Save wienczny/84900d212a4b3021813dd3a96abaf3e6 to your computer and use it in GitHub Desktop.
Magento 2 Queue Consumer with Systemd
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
systemctl enable [email protected] |
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
'cron_consumers_runner' => [ | |
'cron_run' => false | |
] |
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
[Unit] | |
Description=Magento2 Queue Consumer (%I) | |
After=rabbitmq-server.service | |
[Service] | |
ExecStart=/srv/http/magento2/bin/magento queue:consumers:start --max-messages=10000 %I | |
Restart=always | |
User=www-data | |
Group=www-data | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment