Skip to content

Instantly share code, notes, and snippets.

@aidan
Created December 2, 2014 09:57
Show Gist options
  • Save aidan/1d4790cce6b70e267421 to your computer and use it in GitHub Desktop.
Save aidan/1d4790cce6b70e267421 to your computer and use it in GitHub Desktop.
from celery.decorators import periodic_task
from celery.schedules import crontab
@periodic_task(
run_every=crontab(minute='*/10'),
)
def hello_world():
print "hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment