Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sentry_sdk/integrations/rq.py
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
import functools
import weakref

import sentry_sdk
Expand DownExpand Up@@ -62,6 +63,7 @@ def setup_once() -> None:

old_perform_job = worker_cls.perform_job

@functools.wraps(old_perform_job)
def sentry_patched_perform_job(
self: "Any", job: "Job", *args: "Queue", **kwargs: "Any"
) -> bool:
Expand DownExpand Up@@ -146,6 +148,7 @@ def sentry_patched_handle_exception(

old_enqueue_job = Queue.enqueue_job

@functools.wraps(old_enqueue_job)
def sentry_patched_enqueue_job(
self: "Queue", job: "Any", **kwargs: "Any"
) -> "Any":
Expand Down
Loading