Skip to content

Allow active-run job reruns with dependency-aware eligibility#37223

Draft
bircni wants to merge 1 commit intogo-gitea:mainfrom
bircni:feature/rerun-active-jobs
Draft

Allow active-run job reruns with dependency-aware eligibility#37223
bircni wants to merge 1 commit intogo-gitea:mainfrom
bircni:feature/rerun-active-jobs

Conversation

@bircni
Copy link
Copy Markdown
Member

@bircni bircni commented Apr 14, 2026

Enable rerunning a specific failed/cancelled job while its workflow run is still active, instead of requiring the whole run to be done.

Behavior changes

  • Job rerun (/jobs/{job_id}/rerun)
    • Allowed during active runs for failed/cancelled jobs.
    • Rejected if a needed job is still running.
    • Rejected when a needed job failed/cancelled/skipped and target job has no if.
    • Allowed in that same case when target job has an if condition.

Fixes #36120

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 14, 2026
@github-actions github-actions bot added modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code labels Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/api This PR adds API routes or modifies them modifies/go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rerun failed job if another job is still running

2 participants