WebFaction
Community site: login faq

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

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 16 Jun '12, 02:05

Nara
111
accept rate: 0%

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.

(16 Jun '12, 04:17) ryans ♦♦
Be the first one to answer this question!
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×910
×81
×1

question asked: 16 Jun '12, 02:05

question was seen: 3,997 times

last updated: 16 Jun '12, 04:18

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM