docs(buzz-db): note unmatched-claim false return on attach

Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
This commit is contained in:
Elrond
2026-10-14 09:52:54 -04:00
parent 612ccc6ed1
commit 6c065d4084

View File

@@ -590,9 +590,10 @@ pub async fn latest_scheduled_workflow_fire(
/// spawning execution. If run creation fails, leaving `workflow_run_id` NULL is
/// intentional: the schedule instant was claimed and must not duplicate later.
///
/// Returns `false` when the run is missing or belongs to another workflow.
/// Workflow delete removes only its own fires before its runs, and the fire→run
/// FK is NO ACTION, so a cross-workflow link would block that delete.
/// Returns `false` when no unlinked claim matches, or the run is missing or
/// belongs to another workflow. Workflow delete removes only its own fires
/// before its runs, and the fire→run FK is NO ACTION, so a cross-workflow link
/// would block that delete.
pub async fn attach_scheduled_workflow_run(
pool: &PgPool,
community_id: CommunityId,