Re: background task without celery

2012-12-10 Thread John DeRosa
On Dec 10, 2012, at 9:44 AM, leonardo  wrote:

> 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 ?
> 

I investigated alternatives to Celery, and came up with a handful of worthy 
alternatives. See my blog posts at 
http://seeknuance.com/2012/08/09/my-requirements-for-replacing-celery/ and 
http://seeknuance.com/2012/08/14/alternatives-to-using-celery/, they might help 
your search.

John

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: background task without celery

2012-12-10 Thread Nikolas Stevenson-Molnar
You can configure a celery worker on the the same server you run
everything else on. Then you can still use celery (which is useful if
you ever want to scale to a separate worker machine down the road.

_Nik

On 12/10/2012 10:36 AM, Bill Freeman wrote:
>
>
> On Mon, Dec 10, 2012 at 12:44 PM, leonardo  <mailto:leonardo.s.c...@gmail.com>> wrote:
>
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: background task without celery

2012-12-10 Thread Bill Freeman
On Mon, Dec 10, 2012 at 12:44 PM, leonardo wrote:

> 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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



background task without celery

2012-12-10 Thread leonardo
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,

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/zRrd_MT-mMUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.