Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Break up volume tasks into individual image sub-tasks #272

Open
saltymouse opened this issue Apr 8, 2021 · 0 comments
Open

Break up volume tasks into individual image sub-tasks #272

saltymouse opened this issue Apr 8, 2021 · 0 comments

Comments

@saltymouse
Copy link

saltymouse commented Apr 8, 2021

Problem

If I save a volume from Craft → Settings → Assets, this triggers an ImageOptimize rebuild task (yay). However, it looks like there is a single task for the whole volume, with only a single TTR. With asset volumes containing many (and large) images, this volume's task TTR is often exceeded, failing the task and leaving the images unprocessed.

Solution

Is it possible to break up a volume optimize task into sub-tasks per image contained in the volume?

Describe alternatives you have considered

Increasing Craft's queue TTR to 10-15m still isn't enough for more voluminous volumes.
Running php craft image-optimize/optimize/create from the CLI works without timing out, but not accessible to non-terminal users.

Additional context

Craft 3.6.11.2 • PHP 8.0.3 • ImageOptimize 1.6.30 • AsyncQueue 2.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant