login community faq

Hi, I have been using the django_cron module to do some house keeping activities and to send some updates periodically.

1
2
3
4
5
6
7
8
9
from django_cron import cronScheduler, Job

class SendNotification(Job):
   #run_every = 600 # run every 600 seconds (5 minutes), default is one day

   def job(self):
         send_expiry_notification()

cronScheduler.register(SendNotification)

The scheduler has stopped working for no reason and I couldn't find any error message. Any idea what is going wrong?

Cheers.

asked Jun 16 '12 at 02:05

Nara's gravatar image

Nara
1

The answer to why it stopped largely depends on how you were running the module in the first place. Do you trigger it via a cron job? Also, does restarting your Django application have any effect? Lastly, do you use a virtualenv for the application?

Also, if you can point us to the actual site, we may be able to investigate further.

(Jun 16 '12 at 04:17) ryans ♦♦ ryans's gravatar image
Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×641
×50
×1

Asked: Jun 16 '12 at 02:05

Seen: 469 times

Last updated: Jun 16 '12 at 04:18

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited