Jobs stuck on queued
WesSec opened this issue · comments
Hi,
I send you an email to the admin address listed on the website. I have tried several installations of the tool but cannot seem to get it running. When adding a domain via Online tools (e.g. nmap) the tasks is not running
after running php artisan push:queue
the status will change to queued. but the command is never run.
With some trial and error debugging I found out the handle() command in NmapCommand.php is never called (the constructor class is called)
and after running push:queues
the constructor class pops up.
nmap is installed correctly and verified working
I'd happily help to improve the code etc. let me know if there's a chat channel to discuss or maybe i'm just missing something here. thanks for the project!
Hey!
When the task in status queued
it will not be executed immediately. This only means that it was added to the jobs
table. The tasks from the jobs
table are run through the queue:work
jobs.
Please, take a look at worker.sh
. In this script, workers are running. So, you need to launch sh worker.sh
in the background (F.E. with screen
) and everything will be fine. In the worker.sh
you can specify the number of workers to run.
handler
function only executed when job from jobs
table is picked up by queue:work
.
I figured out, that I didn't add this step in the docs. Will update README. Thanks for the issue!
Makes a lot of sense, thanks for explaining, got it running rn! muchos gracias