ostark / craft-async-queue

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

[BUG] Infinite image transforms #57

Closed iamkeir closed 2 years ago

iamkeir commented 2 years ago

When we enable this plugin, our queue starts filling up with an infinitely growing list of image transforms. In each job:

Generating pending image transforms</h2>

ID: 352
Status: Pending
Progress: 0%
Time to reserve: 300 seconds
Priority: 2048
Pushed at: Jul 13, 2022, 7:30:42 AM

Job data:
{
    "description": null
}

The list just keeps growing and they never process/change from pending. Any thoughts?

ostark commented 2 years ago

Hard to tell why it happens. Are the test jobs handled properly? https://github.com/ostark/craft-async-queue#tests

iamkeir commented 2 years ago

Looks like not, the 10 test jobs remain as pending too. Do I need 'runQueueAutomatically' => false in Craft general config?

ostark commented 2 years ago

You don't need to touch runQueueAutomatically.

If the test jobs remain you may need to specify the path to the php executable https://github.com/ostark/craft-async-queue#configuration-optional

iamkeir commented 2 years ago

@ostark that did it, thank you - I should have mentioned I am using MAMP Pro locally, so my PHP path is irregular, and I probably should have RTFM. Thanks for prompt responses, appreciated.

ostark commented 2 years ago

NP