Skip to content

Instantly share code, notes, and snippets.

@simondlr
Created June 5, 2012 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simondlr/2876431 to your computer and use it in GitHub Desktop.
Save simondlr/2876431 to your computer and use it in GitHub Desktop.
views.py
# Create your views here.
from django.http import HttpResponse
from app import tasks
def test_celery(request):
result = tasks.sleeptask.delay(10)
result_one = tasks.sleeptask.delay(10)
result_two = tasks.sleeptask.delay(10)
return HttpResponse(result.task_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment