Permalink
Browse files

added cron

  • Loading branch information...
1 parent 7b7b2e3 commit 7dfea9c9119ef70ed0bde33172f2fedf490aec9b ojii committed Mar 10, 2010
Showing with 13 additions and 1 deletion.
  1. +1 −1 mailchimp/__init__.py
  2. +12 −0 mailchimp/cron.py
View
@@ -4,4 +4,4 @@
All versions with an uneven minor version number are unstable! Versions with
even minor version numbers are considered stable.
"""
-__version__ = '0.1.4'
+__version__ = '0.1.4.1'
View
@@ -0,0 +1,12 @@
+from cronjobs.base import Cron
+from mailchimp.utils import dequeue
+
+class DequeueCron(Cron):
+ run_every = 30 # run every 30 seconds
+
+ def job(self):
+ try:
+ dequeue()
+ return True
+ except:
+ return False

0 comments on commit 7dfea9c

Please sign in to comment.