示例#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.')
示例#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.')