Skip to content

Add Platform workflowId to SeqeraExecutor session labels#6818

Merged
pditommaso merged 1 commit intoschedfrom
platform-workflow-id-labels
Feb 9, 2026
Merged

Add Platform workflowId to SeqeraExecutor session labels#6818
pditommaso merged 1 commit intoschedfrom
platform-workflow-id-labels

Conversation

@pditommaso
Copy link
Member

Summary

  • Add PlatformMetadata class to hold Seqera Platform metadata on WorkflowMetadata, with lazy-init getter
  • TowerClient.onFlowCreate() writes the Platform-assigned workflowId into WorkflowMetadata.platform
  • Labels.withWorkflowMetadata() emits seqera.io/platform/workflowId label so the scheduler can correlate jobs back to Platform runs

Test plan

  • PlatformMetadataTest — construction and mutability
  • LabelsTest — label present when platform workflowId is set, absent when not
  • TowerClientTestplatform.workflowId populated after onFlowCreate()
  • TowerFusionEnvTest — no regressions (lazy-init avoids NPE with @TestOnly constructor)
  • WorkflowMetadataTest — no regressions

🤖 Generated with Claude Code

Write the Platform-assigned workflowId into WorkflowMetadata via a new
PlatformMetadata class so the Seqera scheduler can correlate jobs back
to Platform runs.

- Add PlatformMetadata with lazy-init getter on WorkflowMetadata
- TowerClient.onFlowCreate() writes workflowId to platform metadata
- Labels emits seqera.io/platform/workflowId label

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@pditommaso pditommaso merged commit 0fa7dfb into sched Feb 9, 2026
20 checks passed
@pditommaso pditommaso deleted the platform-workflow-id-labels branch February 9, 2026 15:47
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