Skip to content

Fix spurious WARN when workflow fails before onFlowBegin#6816

Merged
pditommaso merged 1 commit intomasterfrom
fix/skip-tower-complete-when-no-begin
Feb 7, 2026
Merged

Fix spurious WARN when workflow fails before onFlowBegin#6816
pditommaso merged 1 commit intomasterfrom
fix/skip-tower-complete-when-no-begin

Conversation

@pditommaso
Copy link
Member

Summary

  • When a workflow fails before onFlowBegin is invoked (e.g., script parsing error), onFlowComplete still sends a /complete request to the Platform API, which gets rejected with 403 and produces a confusing WARN message
  • Fix: skip sending the complete request when onFlowBegin was never called, by checking that the sender thread (only set in onFlowBegin) is non-null
  • Added unit test to verify the complete request is not sent when begin was not invoked

Test plan

  • New unit test: should not send complete request when onFlowBegin was not invoked
  • Manual: run ./launch.sh run t.nf -with-tower with a script that fails immediately — verify no WARN about unexpected HTTP response

🤖 Generated with Claude Code

Skip sending the /complete request to Seqera Platform when
onFlowBegin was never invoked, avoiding a 403 response and
confusing warning message for early workflow failures.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify
Copy link

netlify bot commented Feb 7, 2026

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 21cd266
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69876457f8d5ab0007c4096f

@pditommaso pditommaso merged commit 5840037 into master Feb 7, 2026
24 checks passed
@pditommaso pditommaso deleted the fix/skip-tower-complete-when-no-begin branch February 7, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant