Skip to content

Instantly share code, notes, and snippets.

View aatishnn's full-sized avatar

Aatish Neupane aatishnn

View GitHub Profile
@aatishnn
aatishnn / celery_tasks_error_handling.py
Created May 10, 2018 11:04 — forked from darklow/celery_tasks_error_handling.py
Celery tasks error handling example
from celery import Task
from celery.task import task
from my_app.models import FailedTask
from django.db import models
@task(base=LogErrorsTask)
def some task():
return result
class LogErrorsTask(Task):