Skip to content

Instantly share code, notes, and snippets.

Created Jun 5, 2012
What would you like to do?
# 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