Giter Site home page Giter Site logo

Comments (5)

styfle avatar styfle commented on May 18, 2024 1

I think another Action is a good workaround, it keeps this Cancel Action simple 😄

I'll keep this issue open if others want to upvote, then we can revisit if its needed 👍

from cancel-workflow-action.

rburchell avatar rburchell commented on May 18, 2024 1

What's the use case here? Doesn't sound like typical CI testing?

Sometimes, your testing may be making use of a limited external resource (like, say, a network port, or a piece of hardware). In such a case, you may have a hard limit on the amount of concurrency you can use. These sort of scenarios are perhaps rare in CI, but they are not impossible, depending on the domain.

from cancel-workflow-action.

styfle avatar styfle commented on May 18, 2024 1

It looks pretty rare since there was only one upvote and that use case was solved in #209 now.

So I'll close this as wont fix.

from cancel-workflow-action.

styfle avatar styfle commented on May 18, 2024

If I really need two runs not to overlap

What's the use case here? Doesn't sound like typical CI testing?

from cancel-workflow-action.

haines avatar haines commented on May 18, 2024

My workflow has a bot user that approves a related pull request in another repo when the tests in this repo pass, and the first step of the workflow is dismissing any previous approval (which is now stale).

If I don't wait for the cancellation to complete, I have a race condition where the previous build manages to approve the pull request before it gets stopped, and after the latest build has attempted to dismiss the review.

I figured out that I can achieve this by adding https://github.com/softprops/turnstyle immediately after this action, so if you don't think the feature is a good fit here, no worries 🙂

from cancel-workflow-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.