runDuration property

Duration? runDuration
getter/setter pair

How long it took for this step to run.

If unset, this is set to the difference between creation_time and completion_time when the step is set to the COMPLETE state. In some cases, it is appropriate to set this value separately: For instance, if a step is created, but the operation it represents is queued for a few minutes before it executes, it would be appropriate not to include the time spent queued in its run_duration. PRECONDITION_FAILED will be returned if one attempts to set a run_duration on a step which already has this field set.

  • In response: present if previously set; always present on COMPLETE step
  • In create request: optional - In update request: optional

Implementation

Duration? runDuration;