acrophobia
acrophobia

Reputation: 954

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.

Upvotes: 3

Views: 1527

Answers (1)

CraigKerstiens
CraigKerstiens

Reputation: 5954

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

Upvotes: 3

Related Questions