VPC 환경에서 이용 가능합니다.
워크플로 실행 상세 정보를 조회합니다. 실행 시작 시점의 태스크 구성과 태스크별 실행 상태, 작업 실행 아이디를 조회합니다.
요청
요청 형식을 설명합니다. 요청 형식은 다음과 같습니다.
| 메서드 | URI |
|---|---|
| GET | /api/v1/workflows/{workflowId}/executions/{executionId} |
요청 헤더
Data Flow API에서 공통으로 사용하는 헤더에 대한 정보는 Data Flow 요청 헤더를 참조해 주십시오.
요청 경로 파라미터
요청 경로 파라미터에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
workflowId |
String | Required | 워크플로 아이디
|
executionId |
String | Required | 워크플로 실행 아이디
|
요청 예시
요청 예시는 다음과 같습니다.
curl --location --request GET 'https://dataflow.apigw.ntruss.com/api/v1/workflows/0ABpcX******/executions/we-t37y9z******' \
--header 'x-ncp-apigw-timestamp: {Timestamp}' \
--header 'x-ncp-iam-access-key: {Access Key}' \
--header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
응답
응답 형식을 설명합니다.
응답 바디
응답 바디에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
workflowId |
String | - | 워크플로 아이디 |
workflowExecutionId |
String | - | 워크플로 실행 아이디 |
status |
String | - | 실행 상태
|
startedBy |
Object | - | 실행 방식 정보 |
startedBy.type |
String | - | 실행 방식
|
startedBy.triggerId |
String | - | 실행 시점에 워크플로에 연결된 트리거 아이디 |
startedBy.triggerName |
String | - | 트리거 이름
|
startedBy.source |
Object | - | Cloud Functions 호출 정보
|
startedBy.source.sourceType |
String | - | 호출 출처 유형
|
startedBy.source.actionName |
String | - | Cloud Functions Action 이름 |
startedBy.source.activationId |
String | - | Cloud Functions Activation 아이디 |
statistics |
Object | - | 태스크 상태별 개수 |
statistics.total |
Integer | - | 전체 태스크 수 |
statistics.succeeded |
Integer | - | 완료(COMPLETED)한 태스크 수 |
statistics.failed |
Integer | - | 실패(FAILED, SYSTEM_FAILED, TIMEOUT)한 태스크 수
|
statistics.running |
Integer | - | 진행 중(READY, RUNNING, CANCELLING)인 태스크 수 |
statistics.stopped |
Integer | - | 취소된(CANCELLED) 태스크 수 |
statistics.waiting |
Integer | - | 아직 시작하지 않은(WAITING) 태스크 수 |
statistics.skipped |
Integer | - | 건너뛴(SKIPPED) 태스크 수 |
tasks |
Array | - | 실행 시작 시점의 태스크 목록과 태스크별 실행 상태: tasks |
errorMessage |
String | - | 실행을 시작하지 못한 사유
|
previousWorkflowExecutionId |
String | - | 원본 실행 아이디
|
startedDateTime |
String | - | 실행 시작 일시
|
completedDateTime |
String | - | 실행 종료 일시
|
tasks
tasks에 대한 설명은 다음과 같습니다.
| 필드 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
taskId |
String | - | 태스크 아이디 |
name |
String | - | 실행 시작 시점의 태스크 이름 |
jobId |
String | - | 태스크에서 실행하는 작업 아이디 |
jobName |
String | - | 작업 이름
|
parentTaskIds |
Array | - | 직계 선행 태스크 아이디 목록 |
joinRule |
String | - | 결합 규칙
|
taskCondition |
Object | - | 이 실행에 적용된 작업 설정
|
taskCondition.numWorker |
Integer | - | 실행 컨테이너 수
|
taskCondition.timeout |
Integer | - | 실행 타임아웃(분)
|
taskCondition.parameters |
Object | - | 작업 파라미터
|
state |
String | - | 태스크 상태
|
jobExecutionId |
String | - | 작업 실행 아이디
|
startedDateTime |
String | - | 작업 실행 시작 일시
|
completedDateTime |
String | - | 작업 실행 종료 일시
|
runningTime |
Integer | - | Spark 애플리케이션 실행 시간(초, 과금 기준) |
errorMessage |
String | - | Data Flow가 판정한 태스크 실패 사유 (예: Timeout 초과, 로그 버킷 오류, 실행 준비 실패, 시스템 오류)
|
응답 상태 코드
Data Flow API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 Data Flow 응답 상태 코드를 참조해 주십시오. 이 API에서 주로 반환하는 상태 코드는 다음과 같습니다.
| HTTP 상태 코드 | 설명 |
|---|---|
| 200 | 조회 성공 |
| 400 | disallowed-character: 경로 · 쿼리 값에 허용되지 않는 문자(& ' " < >) 포함 |
| 404 | 워크플로 또는 실행이 없음 (금지 문자 외에 아이디 형식이 맞지 않는 경우 포함) |
응답 예시
응답 예시는 다음과 같습니다.
{
"workflowId": "0ABpcX******",
"workflowExecutionId": "we-t37y9z******",
"status": "FAILED",
"startedBy": {
"type": "MANUAL",
"triggerId": "VKhnEd******",
"triggerName": "daily-0300",
"source": null
},
"statistics": {
"total": 6,
"succeeded": 4,
"failed": 1,
"running": 0,
"stopped": 0,
"waiting": 0,
"skipped": 1
},
"tasks": [
{
"taskId": "t-extrac",
"name": "extract",
"jobId": "H0BeS3******",
"jobName": "sales-extract",
"parentTaskIds": [],
"joinRule": "ALL_SUCCESS",
"taskCondition": {
"numWorker": 2,
"timeout": 360,
"parameters": {
"mode": "ok"
}
},
"state": "COMPLETED",
"jobExecutionId": "Xa81Kd******",
"startedDateTime": "2026-11-11T15:34:51+09:00",
"completedDateTime": "2026-11-11T15:35:36+09:00",
"runningTime": 45,
"errorMessage": null
},
{
"taskId": "t-cleann",
"name": "clean",
"jobId": "fHgls0******",
"jobName": "sales-clean",
"parentTaskIds": [
"t-extrac"
],
"joinRule": "ALL_SUCCESS",
"taskCondition": {
"numWorker": 2,
"timeout": 360,
"parameters": {
"mode": "ok"
}
},
"state": "COMPLETED",
"jobExecutionId": "Pq20Lm******",
"startedDateTime": "2026-11-11T15:35:58+09:00",
"completedDateTime": "2026-11-11T15:36:39+09:00",
"runningTime": 41,
"errorMessage": null
},
{
"taskId": "t-aggprd",
"name": "aggregate-product",
"jobId": "4H6qoA******",
"jobName": "sales-aggregate-product",
"parentTaskIds": [
"t-cleann"
],
"joinRule": "ALL_SUCCESS",
"taskCondition": {
"numWorker": 2,
"timeout": 1,
"parameters": {
"mode": "ok"
}
},
"state": "TIMEOUT",
"jobExecutionId": "EdgOBp******",
"startedDateTime": "2026-11-11T15:37:04+09:00",
"completedDateTime": "2026-11-11T15:38:06+09:00",
"runningTime": 60,
"errorMessage": "Timeout(1분)을 넘겨 중단되었습니다"
},
{
"taskId": "t-aggreg",
"name": "aggregate-region",
"jobId": "EKQLxk******",
"jobName": "sales-aggregate-region",
"parentTaskIds": [
"t-cleann"
],
"joinRule": "ALL_SUCCESS",
"taskCondition": {
"numWorker": 3,
"timeout": 60,
"parameters": {
"mode": "ok"
}
},
"state": "COMPLETED",
"jobExecutionId": "Vn3sQe******",
"startedDateTime": "2026-11-11T15:37:01+09:00",
"completedDateTime": "2026-11-11T15:37:42+09:00",
"runningTime": 41,
"errorMessage": null
},
{
"taskId": "t-loadmy",
"name": "load",
"jobId": "3so7sS******",
"jobName": "sales-load-mysql",
"parentTaskIds": [
"t-aggreg",
"t-aggprd"
],
"joinRule": "ALL_SUCCESS",
"taskCondition": {
"numWorker": 2,
"timeout": 360,
"parameters": {
"target_table": "sales_daily"
}
},
"state": "SKIPPED",
"jobExecutionId": null,
"startedDateTime": null,
"completedDateTime": null,
"runningTime": null,
"errorMessage": null
},
{
"taskId": "t-notify",
"name": "notify-on-failure",
"jobId": "IknQdw******",
"jobName": "sales-notify",
"parentTaskIds": [
"t-aggreg",
"t-aggprd"
],
"joinRule": "ANY_FAILED",
"taskCondition": {
"numWorker": 2,
"timeout": 360,
"parameters": {
"mode": "ok"
}
},
"state": "COMPLETED",
"jobExecutionId": "Hw7cYt******",
"startedDateTime": "2026-11-11T15:38:11+09:00",
"completedDateTime": "2026-11-11T15:39:01+09:00",
"runningTime": 50,
"errorMessage": null
}
],
"errorMessage": null,
"previousWorkflowExecutionId": null,
"startedDateTime": "2026-11-11T15:34:24+09:00",
"completedDateTime": "2026-11-11T15:39:01+09:00"
}