Skip to content

Commit

Permalink
Separating Workflow Metadata and Defaults (#43)
Browse files Browse the repository at this point in the history
* Separating Workflow Metadata and Defaults

* make generate

Co-authored-by: Miguel Toledo <[email protected]>
Signed-off-by: Eduardo Apolinario <[email protected]>
  • Loading branch information
2 people authored and eapolinario committed Sep 13, 2023
1 parent 288f9a5 commit 097a422
Show file tree
Hide file tree
Showing 26 changed files with 2,065 additions and 334 deletions.
2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

417 changes: 363 additions & 54 deletions flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc

Large diffs are not rendered by default.

258 changes: 217 additions & 41 deletions flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

177 changes: 110 additions & 67 deletions flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go

Large diffs are not rendered by default.

79 changes: 77 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/core/workflow.pb.validate.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -5094,6 +5094,10 @@
],
"default": "UNDEFINED"
},
"coreWorkflowMetadata": {
"type": "object",
"description": "Metadata for the entire workflow.\nTo be used in the future."
},
"coreWorkflowMetadataDefaults": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5126,8 +5130,8 @@
"$ref": "#/definitions/coreIdentifier",
"description": "A globally unique identifier for the workflow."
},
"metadata_defaults": {
"$ref": "#/definitions/coreWorkflowMetadataDefaults",
"metadata": {
"$ref": "#/definitions/coreWorkflowMetadata",
"description": "Extra metadata about the workflow."
},
"interface": {
Expand All @@ -5151,6 +5155,10 @@
"failure_node": {
"$ref": "#/definitions/coreNode",
"description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named \"error\" of type\npb.lyft.flyte.core.Error."
},
"metadata_defaults": {
"$ref": "#/definitions/coreWorkflowMetadataDefaults",
"title": "workflow defaults"
}
},
"description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph."
Expand Down
1 change: 1 addition & 0 deletions flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Class | Method | HTTP request | Description
- [CoreVoid](docs/CoreVoid.md)
- [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md)
- [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md)
- [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md)
- [CoreWorkflowMetadataDefaults](docs/CoreWorkflowMetadataDefaults.md)
- [CoreWorkflowNode](docs/CoreWorkflowNode.md)
- [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md)
Expand Down
27 changes: 25 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6034,6 +6034,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -6854,6 +6855,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -7906,6 +7908,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -8839,6 +8842,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -9659,6 +9663,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -10711,6 +10716,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -11600,6 +11606,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -12420,6 +12427,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -13472,6 +13480,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -14302,6 +14311,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -15122,6 +15132,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -16174,6 +16185,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -17522,6 +17534,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -18369,6 +18382,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -19189,6 +19203,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -20241,6 +20256,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down Expand Up @@ -22530,6 +22546,9 @@ definitions:
- "ABORTED"
- "TIMED_OUT"
default: "UNDEFINED"
coreWorkflowMetadata:
type: "object"
description: "Metadata for the entire workflow.\nTo be used in the future."
coreWorkflowMetadataDefaults:
type: "object"
properties:
Expand Down Expand Up @@ -22572,9 +22591,9 @@ definitions:
id:
description: "A globally unique identifier for the workflow."
$ref: "#/definitions/coreIdentifier"
metadata_defaults:
metadata:
description: "Extra metadata about the workflow."
$ref: "#/definitions/coreWorkflowMetadataDefaults"
$ref: "#/definitions/coreWorkflowMetadata"
interface:
description: "Defines a strongly typed interface for the Workflow. This can\
\ include some optional parameters."
Expand Down Expand Up @@ -22604,6 +22623,9 @@ definitions:
\ this node must match the Workflow interface with an additional input named\
\ \"error\" of type\npb.lyft.flyte.core.Error."
$ref: "#/definitions/coreNode"
metadata_defaults:
title: "workflow defaults"
$ref: "#/definitions/coreWorkflowMetadataDefaults"
description: "Flyte Workflow Structure that encapsulates task, branch and subworkflow\
\ nodes to form a statically analyzable,\ndirected acyclic graph."
example:
Expand Down Expand Up @@ -22710,6 +22732,7 @@ definitions:
- null
map:
bindings: {}
metadata: {}
failure_node:
branch_node:
if_else:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* flyteidl/service/admin.proto
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: version not set
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/

package flyteadmin

// Metadata for the entire workflow. To be used in the future.
type CoreWorkflowMetadata struct {
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type CoreWorkflowTemplate struct {
// A globally unique identifier for the workflow.
Id *CoreIdentifier `json:"id,omitempty"`
// Extra metadata about the workflow.
MetadataDefaults *CoreWorkflowMetadataDefaults `json:"metadata_defaults,omitempty"`
Metadata *CoreWorkflowMetadata `json:"metadata,omitempty"`
// Defines a strongly typed interface for the Workflow. This can include some optional parameters.
Interface_ *CoreTypedInterface `json:"interface,omitempty"`
// A list of nodes. In addition, \"globals\" is a special reserved node id that can be used to consume workflow inputs.
Expand All @@ -23,4 +23,5 @@ type CoreWorkflowTemplate struct {
Outputs []CoreBinding `json:"outputs,omitempty"`
// +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named \"error\" of type pb.lyft.flyte.core.Error.
FailureNode *CoreNode `json:"failure_node,omitempty"`
MetadataDefaults *CoreWorkflowMetadataDefaults `json:"metadata_defaults,omitempty"`
}
4 changes: 2 additions & 2 deletions flyteidl/gen/pb-go/flyteidl/service/openapi.go

Large diffs are not rendered by default.

Loading

0 comments on commit 097a422

Please sign in to comment.