Skip to content

expose job queue information through api #34394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
flixman opened this issue May 7, 2025 · 1 comment
Open

expose job queue information through api #34394

flixman opened this issue May 7, 2025 · 1 comment
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@flixman
Copy link

flixman commented May 7, 2025

Feature Description

Would be great if the information relative to the job queue can be accessed through the API. Then one could add/remove agents depending on the amount of jobs waiting and cost constraints. I think this is not possible, right now?

Screenshots

No response

@flixman flixman added the type/proposal The new feature has not been accepted yet but needs to be discussed first. label May 7, 2025
@ChristopherHX
Copy link
Contributor

  • 1.24-rc0+ webhook workflow_job only
    • you need to track job status yourself
  • planned for 1.25.0 (GitHub like, but not existing on them) jobs endpoint of global, user, org and repo.
    • Use the ?status=queued filter.
    • PR Add workflow_run api + webhook #33964
    • works with keda github_runner scaler e2e test working for me
    • you can poll if you think this is a good idea to stress the database instead of using webhooks
      • the act_runner itself does stress the database a lot, e.g. if you have 60+ act_runner running on a low end raspberry pi 4 gitea instance like me

I think this is not possible, right now?

You are right, no default branch of gitea currently supports polling this information.

@ChristopherHX ChristopherHX added the topic/gitea-actions related to the actions of Gitea label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/gitea-actions related to the actions of Gitea type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

No branches or pull requests

2 participants