Skip to content

[Cancel Duplicate Workflows] PR to demonstrate auto cancel workflows - #42

Closed
pllim wants to merge 3 commits into
kali-maa:masterfrom
pllim:kalimaa-actions-cancel-dup-1
Closed

pllim wants to merge 3 commits into
kali-maa:masterfrom
pllim:kalimaa-actions-cancel-dup-1

Conversation

@pllim

@pllim pllim commented Dec 15, 2020 •

Copy link
Copy Markdown

Description

This pull request is to test and demo cancel duplicate workflows action. When multiple duplicates are running, basically whichever job gets to it first will cancel the duplicates. It keeps the latest by workflow creation timestamp, so even in the case where older workflow get to it first, it will still cancel the older ones, including itself.

Example log snippet from push event straight to master:

Found WorkflowRun(url=..., id=424610590) created at 2020-12-16 01:43:09, latest timestamp now 2020-12-16 01:43:09
Found WorkflowRun(url=..., id=424318923) created at 2020-12-15 22:29:41, latest timestamp now 2020-12-16 01:43:09
Cancelling in_progress WorkflowRun(url=..., id=424318923)
Done checking for duplicate workflows for CI for master branch in kali-maa/astropy

Example log snippet from PR:

Found WorkflowRun(url=..., id=424582474) created at 2020-12-16 01:23:18, latest timestamp now 2020-12-16 01:23:18
Found WorkflowRun(url=..., id=424534409) created at 2020-12-16 00:49:45, latest timestamp now 2020-12-16 01:23:18
Found WorkflowRun(url=..., id=424526492) created at 2020-12-16 00:44:30, latest timestamp now 2020-12-16 01:23:18
Cancelling in_progress WorkflowRun(url=..., id=424534409)
Cancelling in_progress WorkflowRun(url=..., id=424526492)
Done checking for duplicate workflows for CI for kalimaa-actions-cancel-dup-1 branch in kali-maa/astropy

@github-actions github-actions Bot added the Docs Improvements or additions to documentation label Dec 15, 2020
@pllim
pllim force-pushed the kalimaa-actions-cancel-dup-1 branch from f166b9f to 4fd3feb Compare December 17, 2020 01:28
@pllim
pllim force-pushed the kalimaa-actions-cancel-dup-1 branch from 5e5b564 to ac57937 Compare December 23, 2020 20:32
@pllim pllim closed this Dec 23, 2020
@pllim
pllim deleted the kalimaa-actions-cancel-dup-1 branch December 23, 2020 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs Improvements or additions to documentation no-changelog-entry-needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant