feat: propagate trace context through outbox and add pipeline saturation metrics
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -473,6 +473,8 @@ async def _statements(engine, action) -> list[str]:
|
||||
("count_published", "'queued'"),
|
||||
("count_unfinished", "'processing'"),
|
||||
("count_unfinished", "'queued'"),
|
||||
("queue_snapshot", "'processing'"),
|
||||
("queue_snapshot", "'queued'"),
|
||||
("lock_stale_pending", "'pending'"),
|
||||
("get_staging_candidates", "'ready'"),
|
||||
],
|
||||
@@ -491,6 +493,8 @@ async def test_status_is_a_constant_in_statement(
|
||||
await uow.jobs.count_published()
|
||||
elif method == "count_unfinished":
|
||||
await uow.jobs.count_unfinished(limit=1)
|
||||
elif method == "queue_snapshot":
|
||||
await uow.jobs.queue_snapshot(now=NOW)
|
||||
elif method == "lock_stale_pending":
|
||||
await uow.attachments.lock_stale_pending(
|
||||
attachment_id=user_dto().id,
|
||||
|
||||
Reference in New Issue
Block a user