-
Notifications
You must be signed in to change notification settings - Fork 59
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:
@uniqueor@unique(“restart”)would kill the previous run@unique(“queue”)would enqueue subsequent calls.
I’m sure there are more cases, just spit-balling.
Vedeneb and basnijholt
Metadata
Metadata
Assignees
Labels
No labels