GithubHelp home page GithubHelp logo

Comments (4)

eps1lon avatar eps1lon commented on May 3, 2024

I suspect that's very hard to do since that would introduce statefulnes into the action. Have you checked if there are existing patterns that can throttle entire runs instead if single actions?

from actions-label-merge-conflict.

bryangingechen avatar bryangingechen commented on May 3, 2024

I hadn't. I might be misunderstanding your suggestion, but our workflow only runs this one action once every 15 minutes (and we're even using a GitHub token from an account dedicated to this workflow, so that our other workflows don't contribute to the API limit).

What sort of thing did you have in mind?

from actions-label-merge-conflict.

eps1lon avatar eps1lon commented on May 3, 2024

If you already throttle the action what would be achieved if the action itself throttles? I don't see how the action could throttle that couldn't be achieved at the workflow level.

The only implementation I can see for throttling at the action level would involve adding statefulness i.e. each action call needs to be aware of the previous calls. I wouldn't know where to begin with implementations. If you have a concrete implementation in form of a PR I can take a look.

from actions-label-merge-conflict.

bryangingechen avatar bryangingechen commented on May 3, 2024

Hmm, perhaps I wasn't being clear. What I had in mind was more along the lines of adding a (user-specified?) pause after each iteration of this for loop. That way the GitHub API calls can be spread out and we can hopefully avoid getting rate limited.

from actions-label-merge-conflict.

Related Issues (18)

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.