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 07dd9f9 commit cd52455Copy full SHA for cd52455
example.py
@@ -42,6 +42,7 @@ def execute(self, query: str):
42
43
44
@app.on_worker_startup()
45
+# NOTE: This event is triggered internally, do not use unless you know what you're doing
46
def worker_startup(worker_state: TaskiqState): # NOTE: You need the type hint to load worker state
47
# NOTE: Worker state is per-worker, not shared with other workers
48
# NOTE: Can put anything here, any python object works
0 commit comments