ostark / craft-async-queue

Async Queue Handler for Craft 3 and 4
MIT License
93 stars 7 forks source link

Jobs not proccessing when sent from plugin #50

Closed nkpindolia closed 2 years ago

nkpindolia commented 2 years ago

I'm in the process of developing a plugin that will have a lot of jobs (emails, etc)

I was testing if this plugin helps with the jobs however they just get stuck in the 'pending' state.

The job runs fine when this plugin isn't enabled.

when i click the "run test" button, the test runs fine.

when I run nice /usr/local/bin/php craft queue/run > /dev/null 2>&1 & the queue starts to clear.

I've set PHP_BINARY to "/usr/local/bin/php"

no errors are showing up in the logs either.

runQueueAutomatically is true

Craft CMS: 3.7.37 Craft Async Queue: 2.3 Craft Commerce: n/a PHP: 8.0

nb: this is running on nitro

nkpindolia commented 2 years ago

I've noticed this only happens when i trigger a job from the console.

ostark commented 2 years ago

I see no reason why it should not run in the CLI environment.

ostark commented 2 years ago

Do you experience the issue in all environments? (local, prod server etc)

clarknelson commented 2 years ago

any idea how this was resolved @nkpindolia ?