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

Delayed generation ? #484

Open
kedare opened this issue Jan 14, 2017 · 1 comment
Open

Delayed generation ? #484

kedare opened this issue Jan 14, 2017 · 1 comment

Comments

@kedare
Copy link

kedare commented Jan 14, 2017

Hello.

Would it be interesting to implement a delayed generation ?

For example using Celery, the first call of the get_thumbnail function could fallback to the original file and request a background task to generate the images, and then when the thumbnails are available, it would return them instead.

Is there any plan of feature like that ? Would it be interesting ?

Thanks

@kevin-brown
Copy link

We based our Celery tasks (a while ago) off of https://github.com/aidanlister/sorlery and have built a few custom methods for handling the fallback when a thumbnail doesn't exist. There did not appear to be a whole lot that needed to be changed in order to move generating thumbnails to our worker server.

There's a really good chance that if you search for how to generate sorl thumbnails with Celery, you'll find a more up-to-date resource for how to accomplish it.

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

No branches or pull requests

2 participants