Closed
Description
The convention of declaring task.unique(‘function_name’)
seems a bit non-pythonic.
I feel like it might be better to create a @unique
decorator that ensures that the method it wraps is only run once.
Could even add a param that will control what that means:
@unique
or@unique(“restart”)
would kill the previous run@unique(“queue”)
would enqueue subsequent calls.
I’m sure there are more cases, just spit-balling.
Metadata
Metadata
Assignees
Labels
No labels