Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

앱 서버가 앱 인스턴스 실행결과 통지하기 위해, MD에게 완료 콜백함수 실행을 요청합니다.

MD가 Task를 실행할 때 여러개 절차로 진행되는 과정에서, 앱 인스턴스의 실행여부를 확인 후 다음 절차를 진행합니다.

그러므로 MD가 앱 서버로 async_run_app_instance 호출 후, 다시 이 RPC 호출을 받아야 합니다.

Request

[Request parameters]

Parameter

Type

Required

Description

tx_id

String

Required

async_run_app_instance 함수 파라메터로 받았던 Transaction ID

run_result

String

Required

async_run_app_instance 실행결과

app_instance_id

String

Required

앱 인스턴스 ID

outputs [ ]

String

Required

앱의 출력 결과값들

결과값들의 형태는 앱마다 고유하게 정의 됨

logs [ ]

String

결과 로그. 자유 형식.

[Request Example]

{
  "jsonrpc": "2.0",
  "method": "callback_run_app_instance",
  "params": {
    "tx_id": "89s7dyf98ydf98gy9s8d",
    "run_result": "succeed",
    "app_instance_id": "98gduio4l2j9o08fusd9",        // 앱 서버가 직접 생성한 인스턴스 ID
    "outputs": [
      "rtsp://220.11.59.183:554/annotated_video_0",   // 출력 비디오 RTSP URI #0
      "rtsp://220.11.59.183:554/annotated_video_1",   // 출력 비디오 RTSP URI #1
      "https://220.11.59.183/nk2/people_counting/12973/statistics/674"  // 분석통계에 직접 접근할 수 있는 URI
    ]
  },
  "id": "nk2-0"
}

Response

[Error codes]

code

message

Meaning

  • No labels