Skip to content

Commit 0044c76

Browse files
committed
docs(server): the wake hold comment names the open cohort
1 parent 0da57c7 commit 0044c76

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/server/src/orchestration-v2/ProjectionStore.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6417,8 +6417,9 @@ export const layer: Layer.Layer<ProjectionStoreV2, never, SqlClient.SqlClient> =
64176417
AND (i.run_id IS NULL OR r.status <> 'rolled_back')
64186418
${threadIds === undefined ? sql`` : sql`AND i.thread_id IN (SELECT value FROM json_each(${encodeIdList(threadIds)}))`}
64196419
-- A finished delegate's result commits before its wake run exists, and a delivery run ends
6420-
-- before the next delivery is claimed, so an owed task holds the parent while a delivery
6421-
-- is reserved. Without an owning instance it holds completion, not caller access.
6420+
-- before the next delivery is claimed, so an owed task holds the parent while its open
6421+
-- cohort has a delivery reserved. Without an owning instance it holds completion, not
6422+
-- caller access.
64226423
UNION ALL
64236424
SELECT i.thread_id, json_set(i.payload_json, '$.status', 'waiting') AS payload_json,
64246425
NULL AS owning_provider_instance_id

0 commit comments

Comments
 (0)