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
To auto-track every task on an App, register the system integration:
79
+
80
+
```python
81
+
import taskbadger
82
+
from taskbadger.systems.procrastinate import ProcrastinateSystemIntegration
83
+
84
+
taskbadger.init(
85
+
token="***",
86
+
systems=[ProcrastinateSystemIntegration(
87
+
app=app,
88
+
auto_track_tasks=True,
89
+
includes=[r"myapp\..*"],
90
+
excludes=[r"myapp\.cleanup\..*"],
91
+
record_task_args=True,
92
+
)],
93
+
)
94
+
```
95
+
96
+
#### Known limitations
97
+
98
+
-**`task.configure(...).defer(...)` is not tracked.** Procrastinate's `configure()` returns a separate `JobDeferrer` whose methods bypass our wrapper. Use `task.defer(...)` directly for tracked deferrals. Tasks deferred via `configure().defer()` will run normally but will not appear in TaskBadger.
99
+
-**`task.batch_defer*` is not tracked.** Same reason as `configure().defer()`.
100
+
-**Tasks added via `app.add_tasks_from(blueprint)` after `ProcrastinateSystemIntegration` is constructed are not auto-instrumented.** Construct the integration after all blueprints are registered, or apply `@track` to those tasks explicitly.
0 commit comments