Skip to content

Commit

Permalink
refactor(gh): update wait time to 1200 over 600 seconds
Browse files Browse the repository at this point in the history
This should allow for a bit of a longer wait and should cover most edge
cases.
  • Loading branch information
ethanholz committed Aug 5, 2024
1 parent ede659d commit fb799a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ For more information see the [self-hosted runner security docs](https://docs.git
| aws_tags | The AWS tags to use for your runner, formatted as a JSON list. See `README` for more details. | false | |
| extra_gh_labels | Any extra GitHub labels to tag your runners with. Passed as a comma-separated list with no spaces. | false | |
| instance_count | The number of instances to create, defaults to 1 | false | 1 |
| gh_timeout | The amount of timeout for waiting for a runner to be online by GitHub. | false | 600 |
| gh_timeout | The amount of timeout for waiting for a runner to be online by GitHub. | false | 1200 |

### AWS `stop` Inputs
| Input | Description | Required for stop| Default | Note |
Expand Down
2 changes: 1 addition & 1 deletion src/gha_runner/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def main(): # pragma: no cover
raise Exception("Missing required input variable INPUT_PROVIDER")
gh_timeout_var = os.environ.get("INPUT_GH_TIMEOUT")
# Set the default timeout to 10 minutes
gh_timeout = 600
gh_timeout = 1200
# If the user has set the timeout, we will use that instead
if gh_timeout_var is not None:
gh_timeout = int(gh_timeout_var)
Expand Down

0 comments on commit fb799a7

Please sign in to comment.