This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
model_admin_execution_spec.go
44 lines (42 loc) · 3.04 KB
/
model_admin_execution_spec.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
* 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
// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime of an execution as it progresses across phase changes.
type AdminExecutionSpec struct {
LaunchPlan *CoreIdentifier `json:"launch_plan,omitempty"`
Inputs *CoreLiteralMap `json:"inputs,omitempty"`
Metadata *AdminExecutionMetadata `json:"metadata,omitempty"`
// List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied.
Notifications *AdminNotificationList `json:"notifications,omitempty"`
// This should be set to true if all notifications are intended to be disabled for this execution.
DisableAll bool `json:"disable_all,omitempty"`
// Labels to apply to the execution resource.
Labels *AdminLabels `json:"labels,omitempty"`
// Annotations to apply to the execution resource.
Annotations *AdminAnnotations `json:"annotations,omitempty"`
// Optional: security context override to apply this execution.
SecurityContext *CoreSecurityContext `json:"security_context,omitempty"`
// Optional: auth override to apply this execution.
AuthRole *AdminAuthRole `json:"auth_role,omitempty"`
// Indicates the runtime priority of the execution.
QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"`
// Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this.
MaxParallelism int32 `json:"max_parallelism,omitempty"`
RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"`
// Controls how to select an available cluster on which this execution should run.
ClusterAssignment *AdminClusterAssignment `json:"cluster_assignment,omitempty"`
// Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field.
Interruptible bool `json:"interruptible,omitempty"`
// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully.
OverwriteCache bool `json:"overwrite_cache,omitempty"`
// Environment variables to be set for the execution.
Envs *AdminEnvs `json:"envs,omitempty"`
// Tags to be set for the execution.
Tags []string `json:"tags,omitempty"`
}