Skip to content

Commit a7ced93

Browse files
committed
Add retry logic for runner creation and document new inputs
- Introduce `create_retries` and `create_retry_delay` inputs to control retry attempts and delay for runner creation failures - Update README with new inputs and retry logic explanation - Refactor action.sh for improved readability and to support retry mechanism
1 parent 273c9a2 commit a7ced93

3 files changed

Lines changed: 211 additions & 252 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ jobs:
160160
| `server_type` | | Name of the Server type this Server should be created with. | `cx22` (Intel x86, 2 vCPU, 4GB RAM, 40GB SSD) |
161161
| `server_wait` | | Wait up to `server_wait` retries (10 sec each) for the Hetzner Cloud Server to start. | `30` (5 min) |
162162
| `ssh_key` | | SSH key ID (integer) which should be injected into the Server at creation time. | `null` |
163+
| `create_retries` | | Number of retry attempts for runner creation if it fails. | `1` |
164+
| `create_retry_delay`| | Delay in seconds between runner creation retry attempts. | `10` |
165+
166+
## Retry Logic
167+
168+
If runner creation fails due to transient errors (e.g., resource unavailability or network issues), the action will automatically retry up to `create_retries` times, waiting `create_retry_delay` seconds between attempts.
163169

164170
## Outputs
165171

0 commit comments

Comments
 (0)