Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit bc9d996

Browse files
vslavikashwoods
authored andcommitted
Enable breadcrumbs in Celery (#1068)
1 parent 0de4526 commit bc9d996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

raven/contrib/celery/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ def process_failure_signal(self, sender, task_id, args, kwargs, einfo, **kw):
8888
)
8989

9090
def handle_task_prerun(self, sender, task_id, task, **kw):
91+
self.client.context.activate()
9192
self.client.transaction.push(task.name)
9293

9394
def handle_task_postrun(self, sender, task_id, task, **kw):
9495
self.client.transaction.pop(task.name)
96+
self.client.context.clear()

0 commit comments

Comments
 (0)