forked from apache/airflow
/
model_task.go
40 lines (39 loc) · 1.44 KB
/
model_task.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
/*
* Airflow API (Stable)
*
* Apache Airflow management API.
*
* API version: 1.0.0
* Contact: dev@airflow.apache.org
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
*/
package airflow
import (
"time"
)
// Task struct for Task
type Task struct {
ClassRef ClassReference `json:"class_ref,omitempty"`
TaskId string `json:"task_id,omitempty"`
Owner string `json:"owner,omitempty"`
StartDate time.Time `json:"start_date,omitempty"`
EndDate time.Time `json:"end_date,omitempty"`
TriggerRule TriggerRule `json:"trigger_rule,omitempty"`
ExtraLinks []TaskExtraLinks `json:"extra_links,omitempty"`
DependsOnPast bool `json:"depends_on_past,omitempty"`
WaitForDownstream bool `json:"wait_for_downstream,omitempty"`
Retries float32 `json:"retries,omitempty"`
Queue string `json:"queue,omitempty"`
Pool string `json:"pool,omitempty"`
PoolSlots float32 `json:"pool_slots,omitempty"`
ExecutionTimeout TimeDelta `json:"execution_timeout,omitempty"`
RetryDelay TimeDelta `json:"retry_delay,omitempty"`
RetryExponentialBackoff bool `json:"retry_exponential_backoff,omitempty"`
PriorityWeight float32 `json:"priority_weight,omitempty"`
WeightRule WeightRule `json:"weight_rule,omitempty"`
UiColor string `json:"ui_color,omitempty"`
UiFgcolor string `json:"ui_fgcolor,omitempty"`
TemplateFields []string `json:"template_fields,omitempty"`
SubDag Dag `json:"sub_dag,omitempty"`
DownstreamTaskIds []string `json:"downstream_task_ids,omitempty"`
}