|
11177 | 11177 | } |
11178 | 11178 | } |
11179 | 11179 | }, |
| 11180 | + "v1ActivityExecutionListInfo": { |
| 11181 | + "type": "object", |
| 11182 | + "properties": { |
| 11183 | + "activityId": { |
| 11184 | + "type": "string", |
| 11185 | + "description": "For standalone activity - a unique identifier of this activity within its namespace along with run ID (below)." |
| 11186 | + }, |
| 11187 | + "runId": { |
| 11188 | + "type": "string", |
| 11189 | + "description": "The run ID of the workflow or standalone activity." |
| 11190 | + }, |
| 11191 | + "workflowId": { |
| 11192 | + "type": "string", |
| 11193 | + "description": "Workflow that contains this activity - only present for workflow activity." |
| 11194 | + }, |
| 11195 | + "activityType": { |
| 11196 | + "$ref": "#/definitions/v1ActivityType", |
| 11197 | + "description": "The type of the activity, a string that maps to a registered activity on a worker." |
| 11198 | + }, |
| 11199 | + "scheduledTime": { |
| 11200 | + "type": "string", |
| 11201 | + "format": "date-time", |
| 11202 | + "title": "Time the activity was originally scheduled via a StartActivityExecution request.\nTODO: Workflows call this schedule_time but it's scheduled_time in PendingActivityInfo, what should we choose for\nconsistency?" |
| 11203 | + }, |
| 11204 | + "closeTime": { |
| 11205 | + "type": "string", |
| 11206 | + "format": "date-time", |
| 11207 | + "description": "If the activity is in a terminal status, this field represents the time the activity transitioned to that status." |
| 11208 | + }, |
| 11209 | + "status": { |
| 11210 | + "$ref": "#/definitions/v1ActivityExecutionStatus", |
| 11211 | + "description": "Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not\navailable in the list response." |
| 11212 | + }, |
| 11213 | + "searchAttributes": { |
| 11214 | + "$ref": "#/definitions/v1SearchAttributes", |
| 11215 | + "description": "Search attributes from the start request." |
| 11216 | + }, |
| 11217 | + "taskQueue": { |
| 11218 | + "type": "string", |
| 11219 | + "description": "The task queue this activity was scheduled on when it was originally started, updated on activity options update." |
| 11220 | + }, |
| 11221 | + "stateTransitionCount": { |
| 11222 | + "type": "string", |
| 11223 | + "format": "int64", |
| 11224 | + "description": "Updated on terminal status." |
| 11225 | + }, |
| 11226 | + "stateSizeBytes": { |
| 11227 | + "type": "string", |
| 11228 | + "format": "int64", |
| 11229 | + "description": "Updated once on scheduled and once on terminal status." |
| 11230 | + }, |
| 11231 | + "executionDuration": { |
| 11232 | + "type": "string", |
| 11233 | + "description": "The difference between close time and scheduled time.\nThis field is only populated if the activity is closed." |
| 11234 | + } |
| 11235 | + }, |
| 11236 | + "description": "Limited activity information returned in the list response." |
| 11237 | + }, |
11180 | 11238 | "v1ActivityExecutionStatus": { |
11181 | 11239 | "type": "string", |
11182 | 11240 | "enum": [ |
|
11238 | 11296 | "default": "ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED", |
11239 | 11297 | "description": "Defines whether to allow re-using an activity ID from a previously *closed* activity.\nIf the request is denied, the server returns an `ActivityExecutionAlreadyStarted` error.\n\nSee `ActivityIdConflictPolicy` for handling ID duplication with a *running* activity.\n\n - ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE: Always allow starting an activity using the same activity ID.\n - ACTIVITY_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: Allow starting an activity using the same ID only when the last activity's final state is one\nof {failed, canceled, terminated, timed out}.\n - ACTIVITY_ID_REUSE_POLICY_REJECT_DUPLICATE: Do not permit re-use of the ID for this activity. Future start requests could potentially change the policy,\nallowing re-use of the ID." |
11240 | 11298 | }, |
11241 | | - "v1ActivityListInfo": { |
11242 | | - "type": "object", |
11243 | | - "properties": { |
11244 | | - "activityId": { |
11245 | | - "type": "string", |
11246 | | - "description": "For standalone activity - a unique identifier of this activity within its namespace along with run ID (below)." |
11247 | | - }, |
11248 | | - "runId": { |
11249 | | - "type": "string", |
11250 | | - "description": "The run ID of the workflow or standalone activity." |
11251 | | - }, |
11252 | | - "workflowId": { |
11253 | | - "type": "string", |
11254 | | - "description": "Workflow that contains this activity - only present for workflow activity." |
11255 | | - }, |
11256 | | - "activityType": { |
11257 | | - "$ref": "#/definitions/v1ActivityType", |
11258 | | - "description": "The type of the activity, a string that maps to a registered activity on a worker." |
11259 | | - }, |
11260 | | - "scheduledTime": { |
11261 | | - "type": "string", |
11262 | | - "format": "date-time", |
11263 | | - "title": "Time the activity was originally scheduled via a StartActivityExecution request.\nTODO: Workflows call this schedule_time but it's scheduled_time in PendingActivityInfo, what should we choose for\nconsistency?" |
11264 | | - }, |
11265 | | - "closeTime": { |
11266 | | - "type": "string", |
11267 | | - "format": "date-time", |
11268 | | - "description": "If the activity is in a terminal status, this field represents the time the activity transitioned to that status." |
11269 | | - }, |
11270 | | - "status": { |
11271 | | - "$ref": "#/definitions/v1ActivityExecutionStatus", |
11272 | | - "description": "Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not\navailable in the list response." |
11273 | | - }, |
11274 | | - "searchAttributes": { |
11275 | | - "$ref": "#/definitions/v1SearchAttributes", |
11276 | | - "description": "Search attributes from the start request." |
11277 | | - }, |
11278 | | - "taskQueue": { |
11279 | | - "type": "string", |
11280 | | - "description": "The task queue this activity was scheduled on when it was originally started, updated on activity options update." |
11281 | | - }, |
11282 | | - "stateTransitionCount": { |
11283 | | - "type": "string", |
11284 | | - "format": "int64", |
11285 | | - "description": "Updated on terminal status." |
11286 | | - }, |
11287 | | - "stateSizeBytes": { |
11288 | | - "type": "string", |
11289 | | - "format": "int64", |
11290 | | - "description": "Updated once on scheduled and once on terminal status." |
11291 | | - }, |
11292 | | - "executionDuration": { |
11293 | | - "type": "string", |
11294 | | - "description": "The difference between close time and scheduled time.\nThis field is only populated if the activity is closed." |
11295 | | - } |
11296 | | - }, |
11297 | | - "description": "Limited activity information returned in the list response." |
11298 | | - }, |
11299 | 11299 | "v1ActivityOptions": { |
11300 | 11300 | "type": "object", |
11301 | 11301 | "properties": { |
|
13889 | 13889 | "type": "array", |
13890 | 13890 | "items": { |
13891 | 13891 | "type": "object", |
13892 | | - "$ref": "#/definitions/v1ActivityListInfo" |
| 13892 | + "$ref": "#/definitions/v1ActivityExecutionListInfo" |
13893 | 13893 | } |
13894 | 13894 | }, |
13895 | 13895 | "nextPageToken": { |
|
0 commit comments