Queue Worker via Schedule Command not working

Posted 1 year ago by TheSource

Okay, I'm trying to trigger the queue via the cron scheduler. But somehow it doesn't seem to work anymore..

I'm using this now:

logger()->debug('### Schedule Starting now...');
$schedule->command('queue:work --tries=3 --timeout=30')->everyMinute()->withoutOverlapping();
logger()->debug('### Schedule Finished now...');

And my logger proofs that the cron is working.

[2018-01-18 14:43:01] production.DEBUG: ### Schedule Starting now...
[2018-01-18 14:43:01] production.DEBUG: ### Schedule Finished now...
[2018-01-18 14:44:01] production.DEBUG: ### Schedule Starting now...
[2018-01-18 14:44:01] production.DEBUG: ### Schedule Finished now...
[2018-01-18 14:45:01] production.DEBUG: ### Schedule Starting now...
[2018-01-18 14:45:01] production.DEBUG: ### Schedule Finished now...

But the queue:work doesn't get started...

I don't have the means to use Supervisor, so it would be nice to restart the queue worker by the cron in combination with the withoutOverlapping() method.

Any tips?

Please sign in or create an account to participate in this conversation.