4 ms·
I think the idea is for many things you don't sit around and wait for Celery to complete. User clicks "send email"? You throw a send email task in Celery. If
by brianwawok 10y ago
I think the idea is for many things you don't sit around and wait for Celery to complete.
User clicks "send email"? You throw a send email task in Celery. If it takes .1 seconds or 12 seconds, the user doesn't have to wait for it, because they don't care. This is perfect Celery use.
Now when you are loading a page to display to the user, and that page makes a bunch of celery tasks that you NEED To complete.. this is more iffy.. in most cases, you may just want to run those inline in the webrequest. Needing a bunch of tasks to complete to show a user a result is not an ideal use case of Celery.