Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

brlebtag's avatar

beanstalkd: Jobs is ready but it's not been processed

I have a beanstalkd running. sudo netstat -tulpn | grep beanstalkd return this:

tcp        0      0 127.0.0.1:11300         0.0.0.0:*               LISTEN      1114/beanstalkd

Supervisor is running. ps aux | grep supervisor return this:

root      2061  0.0  0.6  58468 12660 ?        Ss   19:39   0:01 /usr/bin/python /usr/bin/supervisord -c /etc/supervisor/supervisord.conf
vagrant   2360  0.0  0.1   9460  2232 pts/0    S+   21:18   0:00 grep --color=auto supervisor

queue:work is running. ps aux | grep php return this:

root      2074  0.0  1.7 258444 36280 ?        S    19:39   0:04 php artisan queue:work --daemon --env=/var/www/.env --sleep=3

and beanstalkd stats return this:

current-jobs-urgent: 0
current-jobs-ready: 1
current-jobs-reserved: 0
current-jobs-delayed: 0
current-jobs-buried: 0
cmd-put: 1
cmd-peek: 0
cmd-peek-ready: 2
cmd-peek-delayed: 0
cmd-peek-buried: 0
cmd-reserve: 0
cmd-reserve-with-timeout: 2013
cmd-delete: 0
cmd-release: 0
cmd-use: 2
cmd-watch: 0
cmd-ignore: 0
cmd-bury: 0
cmd-kick: 0
cmd-touch: 0
cmd-stats: 3
cmd-stats-job: 0
cmd-stats-tube: 1
cmd-list-tubes: 1
cmd-list-tube-used: 0
cmd-list-tubes-watched: 0
cmd-pause-tube: 0
job-timeouts: 0
total-jobs: 1
max-job-size: 65535
current-tubes: 2
current-connections: 2
current-producers: 0
current-workers: 1
current-waiting: 0
total-connections: 6
pid: 1114
version: 1.9
rusage-utime: 0.090270
rusage-stime: 0.067528
uptime: 6097
binlog-oldest-index: 0
binlog-current-index: 0
binlog-records-migrated: 0
binlog-records-written: 0
binlog-max-size: 10485760
id: b71697285562bb41
hostname: homestead

I create a Queueable Command and Command Handler with --queued and --handler. I use Queue::pushOn('Queue_name', new CommandName) to queue my command.

I have no idea what's going on...

0 likes
3 replies
cuber's avatar

Same here.. im using Forge and Envoyer. Work is executed only when i manually execute "artisan queue:work" Any progress ?

brlebtag's avatar

Not yet. I started working at other things. I am giving a time to my brain relax and come up with new ideas :D. if you get any progress please contact me. I'll do the same.

brlebtag's avatar
brlebtag
OP
Best Answer
Level 1

@cuber

I finally solved!!!! :D I am so happy.

Ok, here is the solution. But before that, don't forget to have always the lastest version of pheanstalk or at least a compatible one with laravel5 .

the supervisor queue conf file (in my case /etc/supervisor/conf.d/myqueue.conf) should be like this:

[program:myqueue]
command=php artisan queue:work --daemon --queue=default --queue=emails --env=.env --sleep=3
directory=/var/www
stdout_logfile=/var/www/storage/logs/supervisord/myqueue_supervisord.log
redirect_stderr=true
autostart=true
autorestart=true

For me, It didn't work until I specify which queue 'queue:work' should be listening... In my case it was default and emails queue. If it didn't work, you need to check --env=path. I was using absolute path like this: --env=/var/www/.env but it didn't worked, so i changed to --env=.env and worked!

I also read about add /path/to/artisan in PATH environment variable.

I hope you can solve the problem as well.

1 like

Please or to participate in this conversation.