Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Huey Task Queue #195

Closed
sloweclair opened this issue Dec 5, 2018 · 7 comments
Closed

Support Huey Task Queue #195

sloweclair opened this issue Dec 5, 2018 · 7 comments
Labels
Enhancement New feature or request New Integration Integrating with a new framework or library

Comments

@sloweclair
Copy link

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

@untitaker
Copy link
Member

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 untitaker added the New Integration Integrating with a new framework or library label Dec 5, 2018
@viperfx
Copy link

viperfx commented Mar 12, 2020

Hi there,

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

@nerdbaggy
Copy link

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()

@untitaker
Copy link
Member

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

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

@iker-barriocanal iker-barriocanal added the Enhancement New feature or request label Oct 15, 2021
@github-actions
Copy link

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 🥀

@simkimsia
Copy link

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

@ulgens
Copy link

ulgens commented Feb 13, 2023

I think this can be marked as done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request New Integration Integrating with a new framework or library
Projects
None yet
Development

No branches or pull requests

8 participants