mirror of
https://github.com/block/buzz.git
synced 2026-10-27 20:41:57 +00:00
docs(buzz-db): note unmatched-claim false return on attach
Signed-off-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user