sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

Support Huey Task Queue

Open sloweclair opened this issue 6 years ago • 6 comments

Would be great to have support for https://github.com/coleifer/huey since it supports both Django and regular python scripts.

Right now when exception occurs it has 90+ breadcrumbs because it saves them from the previous jobs

sloweclair avatar Dec 05 '18 16:12 sloweclair

For the breadcrumb issue you can use this decorator for tasks:

def scoped(f):
    def inner(*args, **kwargs):
        with push_scope():
            return f(*args, **kwargs)
    return inner

@huey.task(..)
@scoped
def mytask(..):
    ...

untitaker avatar Dec 05 '18 16:12 untitaker

Hi there,

Is there any support for this? I have not been able to get sentry to catch the errors from Huey.

viperfx avatar Mar 12 '20 21:03 viperfx

I am also looking for some help with this issue.

Even doing the following code before I still get the previous breadcrumbs. Do I need to like clear the beadcrumbs or something?

with push_scope() as scope:
   do_stuff()

nerdbaggy avatar Apr 10 '20 13:04 nerdbaggy

Sorry, yes. This information is out of date. The new code is:

with push_scope() as scope:
    scope.clear_breadcrumbs()
    do_stuff()

untitaker avatar Apr 10 '20 13:04 untitaker

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Dec 23 '21 15:12 github-actions[bot]

I'm now subscribing to this as I am in the midst of moving away from celery

simkimsia avatar May 29 '22 06:05 simkimsia

I think this can be marked as done.

ulgens avatar Feb 13 '23 15:02 ulgens