Skip to content

mightyfineyall/craft-queue-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

craft-queue-worker

Adds a queue worker to an Ubuntu system for Craft CMS. This will run the Craft queue for a site every sixty seconds, and email you if the queue worker stops.

Variables in both files are enclosed in braces and need to be modified. You will need a unique name for each queue you want to run, site is a generic placeholder.

Steps:

  1. Disable Craft's queue runner by adding 'runQueueAutomatically' => false, to the general.php file in the craft/config folder
  2. SSH into server as root
  3. Type sudo nano /etc/systemd/system/[email protected]
  4. Add contents of [email protected] with variables replaced
  5. Type sudo systemctl start site-queue@{1..2}
  6. Type sudo systemctl enable site-queue@{1..2}
  7. Type sudo systemctl daemon-reload
  8. Type sudo apt-get install mailutils
  9. Type sudo nano /usr/local/bin/srvc.sh
  10. Add contents of srvc.sh with variables replaced
  11. Type sudo crontab -e
  12. Add the contents of crontab to the bottom
  13. Type sudo service cron restart
  14. To verify, type journalctl -f -u site-queue@*.service

About

Adds a queue worker to an Ubuntu system for Craft CMS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages