You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is useful if you have a task which takes a complex object, but in fact uniqueness is only done based on single field of it, such as tasks taking User, but uniqueness check only needs user.id.
Of course you could argue, you shouldn't have such celery tasks with such complex object as params, but I think it should be left to the user to decide if is right for them or not.
At the same time it seems very easy to implement - for now I'm using custom subclass:
This is useful if you have a task which takes a complex object, but in fact uniqueness is only done based on single field of it, such as tasks taking
User
, but uniqueness check only needsuser.id
.Of course you could argue, you shouldn't have such celery tasks with such complex object as params, but I think it should be left to the user to decide if is right for them or not.
At the same time it seems very easy to implement - for now I'm using custom subclass:
The text was updated successfully, but these errors were encountered: