Skip to content

Commit 901578a

Browse files
Revert "feat: update schema"
This reverts commit ab2228c. Signed-off-by: Matthias Pichler <[email protected]>
1 parent a406b21 commit 901578a

File tree

1 file changed

+38
-47
lines changed

1 file changed

+38
-47
lines changed

schema/workflow.yaml

Lines changed: 38 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ properties:
7676
description: The workflow's secrets.
7777
description: Defines the workflow's reusable components.
7878
do:
79+
description: Defines the task the workflow must perform
7980
$ref: '#/$defs/task'
80-
description: Defines the tasks the workflow must perform
8181
timeout:
8282
$ref: '#/$defs/timeout'
8383
description: The workflow's timeout configuration, if any.
@@ -118,9 +118,7 @@ $defs:
118118
description: The flow directive to be performed upon completion of the task.
119119
oneOf:
120120
- $ref: '#/$defs/callTask'
121-
- $ref: '#/$defs/sequentialTask'
122-
- $ref: '#/$defs/concurrentTask'
123-
- $ref: '#/$defs/competingTask'
121+
- $ref: '#/$defs/compositeTask'
124122
- $ref: '#/$defs/emitTask'
125123
- $ref: '#/$defs/forTask'
126124
- $ref: '#/$defs/listenTask'
@@ -275,50 +273,43 @@ $defs:
275273
additionalProperties: true
276274
description: A name/value mapping of the parameters, if any, to call the function with.
277275
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
280280
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.
305+
type: array
306+
minItems: 2
307+
items:
308+
type: object
309+
minProperties: 1
310+
maxProperties: 1
311+
additionalProperties:
312+
$ref: '#/$defs/task'
322313
emitTask:
323314
type: object
324315
properties:

0 commit comments

Comments
 (0)