Sunday, October 4, 2015

Re: Method call at end of Django session



On Sunday, 4 October 2015 00:24:22 UTC+5:30, Andréas Kühne wrote:
Hi again,

What I would do is create a django management command (see https://docs.djangoproject.com/en/1.8/howto/custom-management-commands/) and then use cron to call it a regular intervals (5-10 minute intervals for example). 

Another way to do it would be to use celery, which is a delayed job worker and also a cron scheduler (see http://www.celeryproject.org/). Celery has a lot of other functions so if you need to use delayed jobs or need to use jobs that will be fired at intervals, I would recommend using celery, however there is a lot more to configure using celery.

Regards,

 

Thanks, It seems these will work.I will try it and tell if it worked or any problem faced by me.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca2a6f56-4d38-468f-91fb-26ecead9fbdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment