Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python on Heroku - Sending to a background worker

I have a long-running task currently running as a web process on Heroku which according to Heroku docs I need to move to a background worker to avoid timeouts.

How does the web process actually connect to the background worker both to give it the work and to pick up the results? The heroku docs don't seem to explain this.

like image 280
acrophobia Avatar asked Sep 01 '26 12:09

acrophobia


1 Answers

Its more a question of how you commonly do this in Python. The docs have further detail around how to do this with Django, though the key piece is doing this within Celery. You can find more info at: http://devcenter.heroku.com/articles/django#running_a_worker

like image 179
CraigKerstiens Avatar answered Sep 03 '26 01:09

CraigKerstiens



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!