Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added cron

  • Loading branch information...
commit 7dfea9c9119ef70ed0bde33172f2fedf490aec9b 1 parent 7b7b2e3
@ojii ojii authored
Showing with 13 additions and 1 deletion.
  1. +1 −1  mailchimp/__init__.py
  2. +12 −0 mailchimp/cron.py
View
2  mailchimp/__init__.py
@@ -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
12 mailchimp/cron.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.