Skip to content

Instantly share code, notes, and snippets.

@MattTheRed
Created June 5, 2013 20:20
Show Gist options
  • Save MattTheRed/5716972 to your computer and use it in GitHub Desktop.
Save MattTheRed/5716972 to your computer and use it in GitHub Desktop.
from celery.task import task
@task
def my_asyncronous_task(stuff_to_print):
print stuff_to_print
my_asyncronous_task.apply_async((stuff_to_print,), expires=7200)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment