Re: background task without celery
On Mon, Dec 10, 2012 at 12:44 PM, leonardo <leonardo.s.comm@gmail.com> wrote:
Another way to do this is with a cron task to runs a management command. That still takes a separate task, however, if that costs money on heroku (I'm unfamiliar with heroku). You could spawn a thread at some point, making sure that there is just one, and let it sleep for a fixed time (or set the equivalent alarm signal), waking up to see if it has any work to do (this can be hard to get right, and hard to debug).
-- Hi,I'm deploying a project to validation purpose in Heroku and not worth paying for a worker to execute background task.Is there a way to execute background task without celery + rabbitmq ?Thanks,
Another way to do this is with a cron task to runs a management command. That still takes a separate task, however, if that costs money on heroku (I'm unfamiliar with heroku). You could spawn a thread at some point, making sure that there is just one, and let it sleep for a fixed time (or set the equivalent alarm signal), waking up to see if it has any work to do (this can be hard to get right, and hard to debug).
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home