Skip to content

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

Open
@idogrf

Description

@idogrf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions