44 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
55)
66
7- // TaskType은 지원할 Operator 종류를 정의합니다.
7+ // TaskType defines the type of task
88type TaskType string
99
1010const (
@@ -13,24 +13,24 @@ const (
1313 TaskTypeGo TaskType = "Go"
1414)
1515
16- // TaskSpec은 DAG 내부의 개별 작업 단위입니다.
16+ // TaskSpec defines the task spec
1717type TaskSpec struct {
1818 Name string `json:"name"`
1919 Type TaskType `json:"type"`
20- Dependencies []string `json:"dependencies,omitempty"` // 이 Task가 실행되기 위해 완료되어야 할 부모 Task들
20+ Dependencies []string `json:"dependencies,omitempty"` // Parent tasks that must be completed before this task can run
2121
22- // Operator별 실행 내용
23- Command string `json:"command,omitempty"` // Bash용
24- Script string `json:"script,omitempty"` // Python/Go 코드 본문
25- Image string `json:"image,omitempty"` // 커스텀 이미지 사용 시
22+ // Execution details for each task type
23+ Command string `json:"command,omitempty"` // For Bash tasks
24+ Script string `json:"script,omitempty"` // For Python/Go code
25+ Image string `json:"image,omitempty"` // Custom container image if needed
2626}
2727
28- // DagSpec은 사용자가 정의하는 DAG의 전체 명세입니다 .
28+ // DagSpec defines the complete specification of a DAG as defined by the user .
2929type DagSpec struct {
3030 Tasks []TaskSpec `json:"tasks"`
3131}
3232
33- // TaskStatus는 개별 Task의 현재 상태입니다 .
33+ // TaskState represents the current state of an individual task .
3434type TaskState string
3535
3636const (
@@ -47,9 +47,9 @@ type TaskStatus struct {
4747 Message string `json:"message,omitempty"`
4848}
4949
50- // DagStatus는 DAG 전체의 상태입니다 .
50+ // DagStatus represents the overall status of the entire DAG .
5151type DagStatus struct {
52- State TaskState `json:"state"` // DAG 전체 상태 (Running, Completed.. .)
52+ State TaskState `json:"state"` // Overall DAG state (Running, Completed, etc .)
5353 TaskStatuses []TaskStatus `json:"taskStatuses,omitempty"`
5454}
5555
0 commit comments