공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ee.data.getOperation
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
작업 또는 작업 목록에 관한 정보를 가져옵니다.
작업에 대한 자세한 내용은 https://cloud.google.com/apis/design/design_patterns#long_running_operations를 참고하세요.
작업 상태 또는 작업 이름에서 상태로의 맵을 반환합니다. 각 작업에는 다음이 포함됩니다.
- name: projects/X/operations/Y 형식의 작업 이름
- done: 작업 실행이 완료되면 true입니다.
- error: done=true일 때 설정될 수 있습니다. https://cloud.google.com/tasks/docs/reference/rpc/google.rpc#status의 메시지 및 기타 필드를 포함합니다.
- 메타데이터(다음이 포함됨)
+ state: PENDING, RUNNING, CANCELLING, SUCCEEDED, CANCELLED, FAILED
+ description: 제공된 작업 설명
+ type: EXPORT_IMAGE, EXPORT_FEATURES 등
+ create_time: 작업이 처음 제출된 시간입니다.
+ update_time: 가장 최근 업데이트의 타임스탬프입니다.
+ start_time: 작업이 시작된 시간입니다(해당하는 경우).
+ end_time: 작업 실행이 완료된 시간입니다(있는 경우).
+ attempt: 이 태스크의 재시도 횟수입니다(1부터 시작).
+ destination_uris: 이 작업에서 출력된 리소스입니다.
+ batch_eecu_usage_seconds: 이 작업에서 사용한 CPU입니다.
사용 | 반환 값 |
---|
ee.data.getOperation(operationName, callback) | Dictionary<api.Operation>|api.Operation |
인수 | 유형 | 세부정보 |
---|
operationName | List<String>|String | 작업 이름입니다. |
callback | 함수(선택사항) | 선택적 콜백입니다. 제공되지 않으면 호출이 동기적으로 이루어집니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eThe API retrieves the status of an operation or a list of operations, providing details like progress, errors, and timing.\u003c/p\u003e\n"],["\u003cp\u003eEach operation status includes information such as name, completion status, error details, and operation-specific metadata like state, description, and resource usage.\u003c/p\u003e\n"],["\u003cp\u003eOperation metadata provides insights into the operation's lifecycle, including creation, start, update, and end times, as well as retry attempts and resource consumption.\u003c/p\u003e\n"],["\u003cp\u003eUsers can fetch operation details using the \u003ccode\u003eee.data.getOperation()\u003c/code\u003e function, providing the operation name and an optional callback for asynchronous execution.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful execution, the function returns a dictionary containing the operation status or a map of operation names to their respective statuses.\u003c/p\u003e\n"]]],["This outlines how to retrieve information about operations, either individually or in a list. Each operation's details include its `name`, `done` status, and potential `error`. `Metadata` offers insights like `state` (`PENDING`, `RUNNING`, etc.), `description`, `type`, relevant timestamps (`create_time`, `update_time`, etc.), `attempt` count, `destination_uris`, and `batch_eecu_usage_seconds`. Operations can be retrieved using `ee.data.getOperation`, which accepts `operationName(s)` and an optional callback for asynchronous execution.\n"],null,["# ee.data.getOperation\n\n\u003cbr /\u003e\n\nGets information on an operation or list of operations.\n\n\u003cbr /\u003e\n\nSee more details on Operations here: https://cloud.google.com/apis/design/design_patterns#long_running_operations\n\nReturns operation status, or a map from operation names to status. Each Operation contains:\n\n- name: operation name in the format projects/X/operations/Y\n\n- done: true when operation has finished running.\n\n- error: may be set when done=true. Contains message and other fields from https://cloud.google.com/tasks/docs/reference/rpc/google.rpc#status\n\n- metadata, which contains\n\n+ state: PENDING, RUNNING, CANCELLING, SUCCEEDED, CANCELLED, or FAILED\n\n+ description: Supplied task description\n\n+ type: EXPORT_IMAGE, EXPORT_FEATURES, etc.\n\n+ create_time: Time the operation was first submitted.\n\n+ update_time: Timestamp of most recent update.\n\n+ start_time: Time the operation started, when so.\n\n+ end_time: Time the operation finished running, when so.\n\n+ attempt: Number of retries of this task, starting at 1.\n\n+ destination_uris: Resources output by this operation.\n\n+ batch_eecu_usage_seconds: CPU used by this operation.\n\n| Usage | Returns |\n|-----------------------------------------------------|--------------------------------------------|\n| `ee.data.getOperation(operationName, `*callback*`)` | Dictionary\\\u003capi.Operation\\\u003e\\|api.Operation |\n\n| Argument | Type | Details |\n|-----------------|------------------------|------------------------------------------------------------------------|\n| `operationName` | List\\\u003cString\\\u003e\\|String | Operation name(s). |\n| `callback` | Function, optional | An optional callback. If not supplied, the call is made synchronously. |"]]