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

@task_unique decorator not working along with @service decorator #629

Open
idogrf opened this issue Aug 26, 2024 · 0 comments
Open

@task_unique decorator not working along with @service decorator #629

idogrf opened this issue Aug 26, 2024 · 0 comments

Comments

@idogrf
Copy link

idogrf commented Aug 26, 2024

Hi, minor issue - maybe it's known

I'm trying to define a service with a @task_unique decorator
for example -

@service
@task_unique('my_service', kill_me=True)
def my_service():
    log.info("Hi")
    task.sleep(10)

it doesn't work as expected and I can see multiple entries in the logs when calling the service several times

if I use task.unique() at the start of the service instead of the decorator it does work

not a major issue at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant