You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: schema/workflow.yaml
+38-47Lines changed: 38 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -76,8 +76,8 @@ properties:
76
76
description: The workflow's secrets.
77
77
description: Defines the workflow's reusable components.
78
78
do:
79
+
description: Defines the task the workflow must perform
79
80
$ref: '#/$defs/task'
80
-
description: Defines the tasks the workflow must perform
81
81
timeout:
82
82
$ref: '#/$defs/timeout'
83
83
description: The workflow's timeout configuration, if any.
@@ -118,9 +118,7 @@ $defs:
118
118
description: The flow directive to be performed upon completion of the task.
119
119
oneOf:
120
120
- $ref: '#/$defs/callTask'
121
-
- $ref: '#/$defs/sequentialTask'
122
-
- $ref: '#/$defs/concurrentTask'
123
-
- $ref: '#/$defs/competingTask'
121
+
- $ref: '#/$defs/compositeTask'
124
122
- $ref: '#/$defs/emitTask'
125
123
- $ref: '#/$defs/forTask'
126
124
- $ref: '#/$defs/listenTask'
@@ -275,50 +273,43 @@ $defs:
275
273
additionalProperties: true
276
274
description: A name/value mapping of the parameters, if any, to call the function with.
277
275
required: [ call ]
278
-
sequentialTask:
279
-
type: object
276
+
compositeTask:
277
+
type: object
278
+
required: [ execute ]
279
+
description: Serves as a pivotal orchestrator within workflow systems, enabling the seamless integration and execution of multiple subtasks to accomplish complex operations
280
280
properties:
281
-
sequentially:
282
-
type: array
283
-
minItems: 2
284
-
items:
285
-
type: object
286
-
minProperties: 1
287
-
maxProperties: 1
288
-
additionalProperties:
289
-
$ref: '#/$defs/task'
290
-
description: A list of the tasks to perform sequentially.
291
-
required: [ sequentially ]
292
-
concurrentTask:
293
-
type: object
294
-
properties:
295
-
concurrently:
296
-
description: A list of the tasks to perform concurrently.
297
-
type: array
298
-
minItems: 2
299
-
items:
300
-
type: object
301
-
minProperties: 1
302
-
maxProperties: 1
303
-
additionalProperties:
304
-
$ref: '#/$defs/task'
305
-
required: [ concurrently ]
306
-
competingTask:
307
-
type: object
308
-
properties:
309
-
compete:
310
-
type: array
311
-
minItems: 2
312
-
items:
313
-
type: object
314
-
minProperties: 1
315
-
maxProperties: 1
316
-
additionalProperties:
317
-
$ref: '#/$defs/task'
318
-
description: |
319
-
A list of the tasks to perform concurrently and race against each
320
-
other, with a single possible winner, which sets the task's output.
321
-
required: [ compete ]
281
+
execute:
282
+
type: object
283
+
description: Configures the task execution strategy to use
284
+
oneOf:
285
+
- required: [ concurrently ]
286
+
properties:
287
+
concurrently:
288
+
description: A list of the tasks to perform concurrently.
289
+
type: array
290
+
minItems: 2
291
+
items:
292
+
type: object
293
+
minProperties: 1
294
+
maxProperties: 1
295
+
additionalProperties:
296
+
$ref: '#/$defs/task'
297
+
compete:
298
+
description: Indicates whether or not the concurrent tasks are racing against each other, with a single possible winner, which sets the composite task's output.
299
+
type: boolean
300
+
default: false
301
+
- required: [ sequentially ]
302
+
properties:
303
+
sequentially:
304
+
description: A list of the tasks to perform sequentially.
0 commit comments