Add retries and retries_delay options
This commit is contained in:
@@ -102,6 +102,21 @@ Specify a single value to apply it to both height and with, and two values to us
|
||||
config_padding: 6%, 10% # 6% width padding, 10% height padding
|
||||
```
|
||||
|
||||
### ♻️ Retrying automatically failed rendering
|
||||
|
||||
Rendering is subject to external factors and can fail from time to time.
|
||||
It is possible to mitigate this issue using `retries` and `retries_delay` options to automatically retry later metrics rendering and avoid workflow fails.
|
||||
|
||||
#### ℹ️ Examples workflows
|
||||
|
||||
```yaml
|
||||
- uses: lowlighter/metrics@latest
|
||||
with:
|
||||
# ... other options
|
||||
retries: 3
|
||||
retries_delay: 300
|
||||
```
|
||||
|
||||
### 💱 Convert output to PNG/JPEG
|
||||
|
||||
It is possible to convert output from SVG to PNG or JPEG images by using `config_output` option.
|
||||
|
||||
@@ -138,6 +138,22 @@ inputs:
|
||||
- png # Does not support animations
|
||||
- jpeg # Does not support animations and transparency
|
||||
|
||||
# Number of retries in case rendering fail
|
||||
retries:
|
||||
description: Number of retries
|
||||
type: number
|
||||
default: 3
|
||||
min: 1
|
||||
max: 10
|
||||
|
||||
# Time to wait (in seconds) before each retry
|
||||
retries_delay:
|
||||
description: Time to wait (in seconds) before each retry
|
||||
type: number
|
||||
default: 300
|
||||
min: 0
|
||||
max: 3600
|
||||
|
||||
# ====================================================================================
|
||||
# Options below are mostly used for testing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user