Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

can i check if my jobs are queued on hosted actions with a workflow, so i can start to run locally

Solved! Go to Solution.

Hi,

What i want to know is if I can with a command in a workflow check the status of hosted queue, and if i have a queue in my hosted actions, my runner will go through self hosted action. So what I'm trying to say is, my workflow checks if i have something queued in my hosted actions and if is there a queue, it will start to run jobs through my self hosted actions

 

something like this:
if: check_run[queued]
runs-on: [self-hosted linux]

1 Reply
Highlighted
Solution
GitHub Partner
Message 2 of 2

Re: can i check if my jobs are queued on hosted actions with a workflow, so i can start to run local

Currently, there is no way to check hosted queue status. And we could not use if condition for runs-on keyword. 

Hosted runner and self-hosted runner could not be the backup for each other.

You can execute up to 20 workflows concurrently per repository when using GitHub-hosted runners. This document shows detail usage limits: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-github-actions...