Ejemplo n.º 1
0
def test_celery_exception(request):
    from videos.tasks import raise_exception
    raise_exception.delay('Exception in Celery',
                          should_be_logged='Hello, man!')
    return HttpResponse(
        'Hello, from Amazon SQS backend for Celery! Look for exception.')
Ejemplo n.º 2
0
def test_celery_exception(request):
    from videos.tasks import raise_exception
    raise_exception.delay('Exception in Celery', should_be_logged='Hello, man!')
    return HttpResponse('Hello, from Amazon SQS backend for Celery! Look for exception.')