'Laravel - schedule:run not working with queue:work
Working on AWS Elasticbeanstalk,
My scheduler was working well, until I begin to make queue jobs.
in Kernel.php
$schedule->call('App\Http\Controllers\PeriodController@preInvoice')->everyMinute();
Was working well. In .platform/hooks/postdeploy/create_cron_files.sh
echo "* * * * * root /usr/bin/php /var/app/current/artisan schedule:run 1>> /dev/null 2>&1" \
| sudo tee /etc/cron.d/artisan_scheduler
After that, I begin some queue jobs. And entered this command:
.ebextension/crun-linux.config
files:
"/etc/cron.d/schedule_run":
mode: "000644"
owner: root
group: root
content: |
* * * * * root . /opt/elasticbeanstalk/deployment/env && /usr/bin/php /var/app/current/artisan schedule:run 1>> /dev/null 2>&1
commands:
remove_old_cron:
command: "rm -f /etc/cron.d/*.bak"
Now my scheduler not working. And queue:work is not working, too (always stays on 'attempt: 0')
Whats wrong with that? How can I configure that?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
