Re: Delegating a async job from a django view

2011-08-25 Thread Andre Terra
Celery is really all you need.

IIRC, you'll have to install celery, django-celery, setup a broker backend
(which handles the task dispatching), and a result backend (i.e. where
you'll get results from your tasks).

This means you'll have to run a celery server and quite possibly a separate
server for broker/result backends, and there are many options available out
there.

Make sure to ask in #django and #celery for help on freenode. The docs are
very extensive, but there are still some gaps. In any case, users in those
two channels will be glad to help you deal with them.


Cheers,
AT

On Thu, Aug 25, 2011 at 4:24 AM, Amit Sethi wrote:

> What is the best solution for delegating a long time taking job from a
> django view. Basically i wish to query a few web api , analyze and
> then create a report . The report is not to be created in a sync
> manner and can be sent at a later time . But it will have a web
> interface to decide a few factors . I somehow think that twisted can
> be used for this but I am not sure how one can use twisted with django
> . Are there any other solutions that i can use for this problem .
>
> Thanks
> Amit
>
> --
> A-M-I-T S|S
>
> --
> 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: Delegating a async job from a django view

2011-08-25 Thread Thorsten Sanders

https://github.com/ask/django-celery

Take a look at that, it should be able to do what you want, though never 
used it myself yet.



On 25.08.2011 09:24, Amit Sethi wrote:

What is the best solution for delegating a long time taking job from a
django view. Basically i wish to query a few web api , analyze and
then create a report . The report is not to be created in a sync
manner and can be sent at a later time . But it will have a web
interface to decide a few factors . I somehow think that twisted can
be used for this but I am not sure how one can use twisted with django
. Are there any other solutions that i can use for this problem .

Thanks
Amit



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



Delegating a async job from a django view

2011-08-25 Thread Amit Sethi
What is the best solution for delegating a long time taking job from a
django view. Basically i wish to query a few web api , analyze and
then create a report . The report is not to be created in a sync
manner and can be sent at a later time . But it will have a web
interface to decide a few factors . I somehow think that twisted can
be used for this but I am not sure how one can use twisted with django
. Are there any other solutions that i can use for this problem .

Thanks
Amit

-- 
A-M-I-T S|S

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