ee.data.getOperation

  • The provided information explains how to get details on an operation or a list of operations.

  • Each operation includes details such as name, completion status, potential error information, and metadata.

  • The operation metadata contains crucial details like state, description, type, timestamps, and resource usage.

  • The ee.data.getOperation function is used to retrieve operation details, accepting one or more operation names and an optional callback function.

Gets information on an operation or list of operations.

See more details on Operations here: https://cloud.google.com/apis/design/design_patterns#long_running_operations

Returns operation status, or a map from operation names to status. Each Operation contains:

  - name: operation name in the format projects/X/operations/Y

  - done: true when operation has finished running.

  - error: may be set when done=true. Contains message and other fields from https://cloud.google.com/tasks/docs/reference/rpc/google.rpc#status

  - metadata, which contains

    + state: PENDING, RUNNING, CANCELLING, SUCCEEDED, CANCELLED, or FAILED

    + description: Supplied task description

    + type: EXPORT_IMAGE, EXPORT_FEATURES, etc.

    + create_time: Time the operation was first submitted.

    + update_time: Timestamp of most recent update.

    + start_time: Time the operation started, when so.

    + end_time: Time the operation finished running, when so.

    + attempt: Number of retries of this task, starting at 1.

    + destination_uris: Resources output by this operation.

    + batch_eecu_usage_seconds: CPU used by this operation.

UsageReturns
ee.data.getOperation(operationName, callback)Dictionary<api.Operation>|api.Operation
ArgumentTypeDetails
operationNameList<String>|StringOperation name(s).
callbackFunction, optionalAn optional callback. If not supplied, the call is made synchronously.