Webador / SlmQueue

Laminas / Mezzio module that integrates with various queue management systems.
Other
137 stars 56 forks source link

issue in insert into the queue #219

Closed abdollah-aghayan closed 6 years ago

abdollah-aghayan commented 6 years ago

I have had problem with insert in to queue which when I start job so I can't insert into queue anymore but when job not working(stop) it's inserted correctly Do you know what I should do?

basz commented 6 years ago

Do I understand you when you say;

When a job is running you are unable to is insert new jobs?

If so; that is strange. Job insertion and job execution are not related.

abdollah-aghayan commented 6 years ago

I use Doctrine adapter but I don't detect any error during run time. The point is in my local it's working correctly but in server it dosen't work with the same configuration.

basz commented 6 years ago

I can only advise you to do some debuging in the Queue class’es push method unless you provide more information.

abdollah-aghayan commented 6 years ago

I think my problem is put job command in cron job in following way so it's not working correctly . run-one php public/index.php queue doctrine import --start Do you have any idea how can I run it on server which still running any time?

basz commented 6 years ago

Running via cron should work. Although supervisor or similar is recommended.

See: https://github.com/JouwWeb/SlmQueue/blob/master/docs/7.WorkerManagement.md

roelvanduijnhoven commented 6 years ago

I'll close this issue for now. Once you have more information; feel free to re-open.