Skip to content Skip to sidebar Skip to footer

How Can I Run Function Asynchronously To Make Calculation Parallelly On Heroku With Django App?

I have to run function 500 times with different arguments on Heroku with hobby plan in my Django app at a specific time. I need to do it in the shortest period of time. I noticed t

Solution 1:

Heroku doesn't support running this amount of workers at the same time in hobby plan.

You can use Celery to run this asynchronously with the amount of workers you want. Heroku hobby plan only supports 1 worker, but Celery will run you task in background at least (if that helps).

If you want to go with Celery, there's a guide to start using Celery on Django

Post a Comment for "How Can I Run Function Asynchronously To Make Calculation Parallelly On Heroku With Django App?"