Skip to content

Instantly share code, notes, and snippets.

@philipborbon
Last active December 7, 2020 06:56
Show Gist options
  • Save philipborbon/83d44c6ca15593931f0643971bd09642 to your computer and use it in GitHub Desktop.
Save philipborbon/83d44c6ca15593931f0643971bd09642 to your computer and use it in GitHub Desktop.
Cron job command to execute Laravel queue on shared hosting

flock -xn /tmp/laravel_queues.lockfile -c "/usr/local/bin/php /home/user/www/project/artisan queue:work --sleep=3 --tries=3"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment