Skip to content

Terminate polling if we can't advance invocation#1547

Merged
mvdbeek merged 1 commit intogalaxyproject:masterfrom
mvdbeek:terminate_polling_paused
Jun 20, 2025
Merged

Terminate polling if we can't advance invocation#1547
mvdbeek merged 1 commit intogalaxyproject:masterfrom
mvdbeek:terminate_polling_paused

Conversation

@mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Jun 20, 2025

because all jobs are terminal and we have paused jobs.

# This is a tricky issue, because we might be waiting to schedule a new step whose inputs are paused.
# Unlikely that this will ever be unpaused, so we also consider the "ready" invocation state and the presence of paused jobs as terminal.
# We might want to tweak the state in Galaxy if we pause jobs because of input errors, so that this hack won't be rquired.
return invocation_state_terminal(self.invocation_state) or self.invocation_state == "ready" and self.num_paused and self.num_errors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This vaguely makes sense - definitely seems like something we need to cleanup Galaxy side long term. Maybe we should pause workflows with paused jobs.

@mvdbeek mvdbeek force-pushed the terminate_polling_paused branch from 9dc6764 to 5b6df72 Compare June 20, 2025 14:58
because all jobs are terminal and we have paused jobs.
@mvdbeek mvdbeek force-pushed the terminate_polling_paused branch from 5b6df72 to 2a59f16 Compare June 20, 2025 15:01
@mvdbeek mvdbeek merged commit ac9f3d4 into galaxyproject:master Jun 20, 2025
0 of 14 checks passed
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.

2 participants