We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2cf1cd commit 4ba5054Copy full SHA for 4ba5054
README.md
@@ -128,7 +128,7 @@ This can be used to make celery-singleton only consider certain arguments when d
128
For example, this task allows only one instance per username, other arguments don't matter:
129
130
```python
131
-@app.task(base=Singleton, unique_on=['user_id', ])
+@app.task(base=Singleton, unique_on=['username', ])
132
def do_something(username, otherarg=None):
133
time.sleep(5)
134
0 commit comments