Skip to content

Instantly share code, notes, and snippets.

@mixman
Created February 10, 2011 09:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mixman/820193 to your computer and use it in GitHub Desktop.
Save mixman/820193 to your computer and use it in GitHub Desktop.
+ def is_due(self):
+ """See :meth:`celery.task.base.PeriodicTask.is_due`."""
+ due = self.schedule.is_due(self.last_run_at)
+ if not self.model.enabled:
+ due[0] = False
+ return due
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment