This commit is contained in:
dongjiang 2025-06-21 09:58:28 +08:00 committed by GitHub
commit faa304e5a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -134,8 +134,11 @@ The specification of cloud-native services defines service metadata, version lis
| ----------------- | ------------------------------------ | -------- | ------------- | ------------------------------------------------------------ |
| `name` | `string` | Y | | JobTemplate name |
| `dependsOn` | [`DependsOn`](#DependsOn) | Y | | JobTemplate dependencies |
| `maxRetry` | `int` | N | 1 | JobFlow maxRetry retry count.|
| `patch` | [`Patch`](#Patch) | N | | Patch JobTemplate |
* If `flows[0].MaxRetry` is defined, use this maxRetry count for JobFlowTemplate.
<a id="DependsOn"></a>
##### DependsOn
@ -264,9 +267,10 @@ metadata:
name: test
namespace: default
spec:
jobRetainPolicy: delete
jobRetainPolicy: delete
flows:
- name: a
maxRetry: 3
patch:
spec:
tasks:
@ -383,6 +387,5 @@ https://www.bilibili.com/video/BV1c44y1Y7FX
* `if` statements
* `switch` statements
* `for` statements
* Support job failure retry in JobFlow
* Integration with volcano-scheduler
* Support for scheduling plugins at JobFlow level

View File

@ -7,7 +7,9 @@ spec:
jobRetainPolicy: delete # After jobflow runs, keep the generated job. Otherwise, delete it.
flows:
- name: a
maxRetry: 5 # When the maxRetry defined, use this maxRetry count for JobFlowTemplate
- name: b
maxRetry: 2
dependsOn:
targets: ['a']
- name: c