Skip to content

Instantly share code, notes, and snippets.

@bhardin
Last active September 21, 2016 15:11
Show Gist options
  • Save bhardin/a06adc5f9f06b889932f7720e061813b to your computer and use it in GitHub Desktop.
Save bhardin/a06adc5f9f06b889932f7720e061813b to your computer and use it in GitHub Desktop.
Examples of how to use celery beat
# app/some_cool_app/tasks.py
@celery_app.task(bind=True, queue=’whenever’)
def a_long_running_process(self):
process = LongRunningProcess()
process.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment