Skip to content

Instantly share code, notes, and snippets.

@MattTheRed
Last active December 18, 2015 03:18
Show Gist options
  • Save MattTheRed/5716764 to your computer and use it in GitHub Desktop.
Save MattTheRed/5716764 to your computer and use it in GitHub Desktop.
from celery.task import task
@task(expires=7200)
def my_asyncronous_task(stuff_to_print):
print stuff_to_print
my_asyncronous_task.delay(stuff_to_print)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment