|
11154 | 11154 | } |
11155 | 11155 | } |
11156 | 11156 | }, |
| 11157 | + "v1ActivityExecutionListInfo": { |
| 11158 | + "type": "object", |
| 11159 | + "properties": { |
| 11160 | + "activityId": { |
| 11161 | + "type": "string", |
| 11162 | + "description": "For standalone activity - a unique identifier of this activity within its namespace along with run ID (below)." |
| 11163 | + }, |
| 11164 | + "runId": { |
| 11165 | + "type": "string", |
| 11166 | + "description": "The run ID of the workflow or standalone activity." |
| 11167 | + }, |
| 11168 | + "workflowId": { |
| 11169 | + "type": "string", |
| 11170 | + "description": "Workflow that contains this activity - only present for workflow activity." |
| 11171 | + }, |
| 11172 | + "activityType": { |
| 11173 | + "$ref": "#/definitions/v1ActivityType", |
| 11174 | + "description": "The type of the activity, a string that maps to a registered activity on a worker." |
| 11175 | + }, |
| 11176 | + "scheduledTime": { |
| 11177 | + "type": "string", |
| 11178 | + "format": "date-time", |
| 11179 | + "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?" |
| 11180 | + }, |
| 11181 | + "closeTime": { |
| 11182 | + "type": "string", |
| 11183 | + "format": "date-time", |
| 11184 | + "description": "If the activity is in a terminal status, this field represents the time the activity transitioned to that status." |
| 11185 | + }, |
| 11186 | + "status": { |
| 11187 | + "$ref": "#/definitions/v1ActivityExecutionStatus", |
| 11188 | + "description": "Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not\navailable in the list response." |
| 11189 | + }, |
| 11190 | + "searchAttributes": { |
| 11191 | + "$ref": "#/definitions/v1SearchAttributes", |
| 11192 | + "description": "Search attributes from the start request." |
| 11193 | + }, |
| 11194 | + "taskQueue": { |
| 11195 | + "type": "string", |
| 11196 | + "description": "The task queue this activity was scheduled on when it was originally started, updated on activity options update." |
| 11197 | + }, |
| 11198 | + "stateTransitionCount": { |
| 11199 | + "type": "string", |
| 11200 | + "format": "int64", |
| 11201 | + "description": "Updated on terminal status." |
| 11202 | + }, |
| 11203 | + "stateSizeBytes": { |
| 11204 | + "type": "string", |
| 11205 | + "format": "int64", |
| 11206 | + "description": "Updated once on scheduled and once on terminal status." |
| 11207 | + }, |
| 11208 | + "executionDuration": { |
| 11209 | + "type": "string", |
| 11210 | + "description": "The difference between close time and scheduled time.\nThis field is only populated if the activity is closed." |
| 11211 | + } |
| 11212 | + }, |
| 11213 | + "description": "Limited activity information returned in the list response." |
| 11214 | + }, |
11157 | 11215 | "v1ActivityExecutionStatus": { |
11158 | 11216 | "type": "string", |
11159 | 11217 | "enum": [ |
|
11215 | 11273 | "default": "ACTIVITY_ID_REUSE_POLICY_UNSPECIFIED", |
11216 | 11274 | "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." |
11217 | 11275 | }, |
11218 | | - "v1ActivityListInfo": { |
11219 | | - "type": "object", |
11220 | | - "properties": { |
11221 | | - "activityId": { |
11222 | | - "type": "string", |
11223 | | - "description": "For standalone activity - a unique identifier of this activity within its namespace along with run ID (below)." |
11224 | | - }, |
11225 | | - "runId": { |
11226 | | - "type": "string", |
11227 | | - "description": "The run ID of the workflow or standalone activity." |
11228 | | - }, |
11229 | | - "workflowId": { |
11230 | | - "type": "string", |
11231 | | - "description": "Workflow that contains this activity - only present for workflow activity." |
11232 | | - }, |
11233 | | - "activityType": { |
11234 | | - "$ref": "#/definitions/v1ActivityType", |
11235 | | - "description": "The type of the activity, a string that maps to a registered activity on a worker." |
11236 | | - }, |
11237 | | - "scheduledTime": { |
11238 | | - "type": "string", |
11239 | | - "format": "date-time", |
11240 | | - "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?" |
11241 | | - }, |
11242 | | - "closeTime": { |
11243 | | - "type": "string", |
11244 | | - "format": "date-time", |
11245 | | - "description": "If the activity is in a terminal status, this field represents the time the activity transitioned to that status." |
11246 | | - }, |
11247 | | - "status": { |
11248 | | - "$ref": "#/definitions/v1ActivityExecutionStatus", |
11249 | | - "description": "Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not\navailable in the list response." |
11250 | | - }, |
11251 | | - "searchAttributes": { |
11252 | | - "$ref": "#/definitions/v1SearchAttributes", |
11253 | | - "description": "Search attributes from the start request." |
11254 | | - }, |
11255 | | - "taskQueue": { |
11256 | | - "type": "string", |
11257 | | - "description": "The task queue this activity was scheduled on when it was originally started, updated on activity options update." |
11258 | | - }, |
11259 | | - "stateTransitionCount": { |
11260 | | - "type": "string", |
11261 | | - "format": "int64", |
11262 | | - "description": "Updated on terminal status." |
11263 | | - }, |
11264 | | - "stateSizeBytes": { |
11265 | | - "type": "string", |
11266 | | - "format": "int64", |
11267 | | - "description": "Updated once on scheduled and once on terminal status." |
11268 | | - }, |
11269 | | - "executionDuration": { |
11270 | | - "type": "string", |
11271 | | - "description": "The difference between close time and scheduled time.\nThis field is only populated if the activity is closed." |
11272 | | - } |
11273 | | - }, |
11274 | | - "description": "Limited activity information returned in the list response." |
11275 | | - }, |
11276 | 11276 | "v1ActivityOptions": { |
11277 | 11277 | "type": "object", |
11278 | 11278 | "properties": { |
|
13866 | 13866 | "type": "array", |
13867 | 13867 | "items": { |
13868 | 13868 | "type": "object", |
13869 | | - "$ref": "#/definitions/v1ActivityListInfo" |
| 13869 | + "$ref": "#/definitions/v1ActivityExecutionListInfo" |
13870 | 13870 | } |
13871 | 13871 | }, |
13872 | 13872 | "nextPageToken": { |
|
0 commit comments