forked from temporalio/sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage_pb2.pyi
More file actions
676 lines (641 loc) · 27.9 KB
/
message_pb2.pyi
File metadata and controls
676 lines (641 loc) · 27.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
"""
@generated by mypy-protobuf. Do not edit manually!
isort:skip_file
"""
import builtins
import collections.abc
import sys
import google.protobuf.descriptor
import google.protobuf.duration_pb2
import google.protobuf.internal.containers
import google.protobuf.message
import google.protobuf.timestamp_pb2
import temporalio.api.callback.v1.message_pb2
import temporalio.api.common.v1.message_pb2
import temporalio.api.deployment.v1.message_pb2
import temporalio.api.enums.v1.activity_pb2
import temporalio.api.enums.v1.workflow_pb2
import temporalio.api.failure.v1.message_pb2
import temporalio.api.sdk.v1.user_metadata_pb2
import temporalio.api.taskqueue.v1.message_pb2
if sys.version_info >= (3, 8):
import typing as typing_extensions
else:
import typing_extensions
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
class ActivityExecutionOutcome(google.protobuf.message.Message):
"""The outcome of a completed activity execution: either a successful result or a failure."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESULT_FIELD_NUMBER: builtins.int
FAILURE_FIELD_NUMBER: builtins.int
@property
def result(self) -> temporalio.api.common.v1.message_pb2.Payloads:
"""The result if the activity completed successfully."""
@property
def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
"""The failure if the activity completed unsuccessfully."""
def __init__(
self,
*,
result: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"failure", b"failure", "result", b"result", "value", b"value"
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"failure", b"failure", "result", b"result", "value", b"value"
],
) -> None: ...
def WhichOneof(
self, oneof_group: typing_extensions.Literal["value", b"value"]
) -> typing_extensions.Literal["result", "failure"] | None: ...
global___ActivityExecutionOutcome = ActivityExecutionOutcome
class ActivityOptions(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
TASK_QUEUE_FIELD_NUMBER: builtins.int
SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int
RETRY_POLICY_FIELD_NUMBER: builtins.int
PRIORITY_FIELD_NUMBER: builtins.int
@property
def task_queue(self) -> temporalio.api.taskqueue.v1.message_pb2.TaskQueue: ...
@property
def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Indicates how long the caller is willing to wait for an activity completion. Limits how long
retries will be attempted. Either this or `start_to_close_timeout` must be specified.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Limits time an activity task can stay in a task queue before a worker picks it up. This
timeout is always non retryable, as all a retry would achieve is to put it back into the same
queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
specified.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Maximum time an activity is allowed to execute after being picked up by a worker. This
timeout is always retryable. Either this or `schedule_to_close_timeout` must be
specified.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Maximum permitted time between successful worker heartbeats."""
@property
def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
"""The retry policy for the activity. Will never exceed `schedule_to_close_timeout`."""
@property
def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
"""Priority metadata. If this message is not present, or any fields are not
present, they inherit the values from the workflow.
"""
def __init__(
self,
*,
task_queue: temporalio.api.taskqueue.v1.message_pb2.TaskQueue | None = ...,
schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
schedule_to_start_timeout: google.protobuf.duration_pb2.Duration | None = ...,
start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ...,
retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"heartbeat_timeout",
b"heartbeat_timeout",
"priority",
b"priority",
"retry_policy",
b"retry_policy",
"schedule_to_close_timeout",
b"schedule_to_close_timeout",
"schedule_to_start_timeout",
b"schedule_to_start_timeout",
"start_to_close_timeout",
b"start_to_close_timeout",
"task_queue",
b"task_queue",
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"heartbeat_timeout",
b"heartbeat_timeout",
"priority",
b"priority",
"retry_policy",
b"retry_policy",
"schedule_to_close_timeout",
b"schedule_to_close_timeout",
"schedule_to_start_timeout",
b"schedule_to_start_timeout",
"start_to_close_timeout",
b"start_to_close_timeout",
"task_queue",
b"task_queue",
],
) -> None: ...
global___ActivityOptions = ActivityOptions
class ActivityExecutionInfo(google.protobuf.message.Message):
"""Information about a standalone activity."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACTIVITY_ID_FIELD_NUMBER: builtins.int
RUN_ID_FIELD_NUMBER: builtins.int
ACTIVITY_TYPE_FIELD_NUMBER: builtins.int
STATUS_FIELD_NUMBER: builtins.int
RUN_STATE_FIELD_NUMBER: builtins.int
TASK_QUEUE_FIELD_NUMBER: builtins.int
SCHEDULE_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
SCHEDULE_TO_START_TIMEOUT_FIELD_NUMBER: builtins.int
START_TO_CLOSE_TIMEOUT_FIELD_NUMBER: builtins.int
HEARTBEAT_TIMEOUT_FIELD_NUMBER: builtins.int
RETRY_POLICY_FIELD_NUMBER: builtins.int
HEARTBEAT_DETAILS_FIELD_NUMBER: builtins.int
LAST_HEARTBEAT_TIME_FIELD_NUMBER: builtins.int
LAST_STARTED_TIME_FIELD_NUMBER: builtins.int
ATTEMPT_FIELD_NUMBER: builtins.int
EXECUTION_DURATION_FIELD_NUMBER: builtins.int
SCHEDULE_TIME_FIELD_NUMBER: builtins.int
EXPIRATION_TIME_FIELD_NUMBER: builtins.int
CLOSE_TIME_FIELD_NUMBER: builtins.int
LAST_FAILURE_FIELD_NUMBER: builtins.int
LAST_WORKER_IDENTITY_FIELD_NUMBER: builtins.int
CURRENT_RETRY_INTERVAL_FIELD_NUMBER: builtins.int
LAST_ATTEMPT_COMPLETE_TIME_FIELD_NUMBER: builtins.int
NEXT_ATTEMPT_SCHEDULE_TIME_FIELD_NUMBER: builtins.int
LAST_DEPLOYMENT_VERSION_FIELD_NUMBER: builtins.int
PRIORITY_FIELD_NUMBER: builtins.int
STATE_TRANSITION_COUNT_FIELD_NUMBER: builtins.int
STATE_SIZE_BYTES_FIELD_NUMBER: builtins.int
SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
HEADER_FIELD_NUMBER: builtins.int
USER_METADATA_FIELD_NUMBER: builtins.int
CANCELED_REASON_FIELD_NUMBER: builtins.int
LINKS_FIELD_NUMBER: builtins.int
TOTAL_HEARTBEAT_COUNT_FIELD_NUMBER: builtins.int
activity_id: builtins.str
"""Unique identifier of this activity within its namespace along with run ID (below)."""
run_id: builtins.str
@property
def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType:
"""The type of the activity, a string that maps to a registered activity on a worker."""
status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType
"""A general status for this activity, indicates whether it is currently running or in one of the terminal statuses."""
run_state: temporalio.api.enums.v1.workflow_pb2.PendingActivityState.ValueType
"""More detailed breakdown of ACTIVITY_EXECUTION_STATUS_RUNNING."""
task_queue: builtins.str
@property
def schedule_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Indicates how long the caller is willing to wait for an activity completion. Limits how long
retries will be attempted.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def schedule_to_start_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Limits time an activity task can stay in a task queue before a worker picks it up. This
timeout is always non retryable, as all a retry would achieve is to put it back into the same
queue. Defaults to `schedule_to_close_timeout`.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def start_to_close_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Maximum time a single activity attempt is allowed to execute after being picked up by a worker. This
timeout is always retryable.
(-- api-linter: core::0140::prepositions=disabled
aip.dev/not-precedent: "to" is used to indicate interval. --)
"""
@property
def heartbeat_timeout(self) -> google.protobuf.duration_pb2.Duration:
"""Maximum permitted time between successful worker heartbeats."""
@property
def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy:
"""The retry policy for the activity. Will never exceed `schedule_to_close_timeout`."""
@property
def heartbeat_details(self) -> temporalio.api.common.v1.message_pb2.Payloads:
"""Details provided in the last recorded activity heartbeat."""
@property
def last_heartbeat_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time the last heartbeat was recorded."""
@property
def last_started_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time the last attempt was started."""
attempt: builtins.int
"""The attempt this activity is currently on. Incremented each time a new attempt is scheduled."""
@property
def execution_duration(self) -> google.protobuf.duration_pb2.Duration:
"""How long this activity has been running for, including all attempts and backoff between attempts."""
@property
def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time the activity was originally scheduled via a StartActivityExecution request."""
@property
def expiration_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Scheduled time + schedule to close timeout."""
@property
def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time when the activity transitioned to a closed state."""
@property
def last_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure:
"""Failure details from the last failed attempt."""
last_worker_identity: builtins.str
@property
def current_retry_interval(self) -> google.protobuf.duration_pb2.Duration:
"""Time from the last attempt failure to the next activity retry.
If the activity is currently running, this represents the next retry interval in case the attempt fails.
If activity is currently backing off between attempt, this represents the current retry interval.
If there is no next retry allowed, this field will be null.
This interval is typically calculated from the specified retry policy, but may be modified if an activity fails
with a retryable application failure specifying a retry delay.
"""
@property
def last_attempt_complete_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""The time when the last activity attempt completed. If activity has not been completed yet, it will be null."""
@property
def next_attempt_schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""The time when the next activity attempt will be scheduled.
If activity is currently scheduled or started, this field will be null.
"""
@property
def last_deployment_version(
self,
) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion:
"""The Worker Deployment Version this activity was dispatched to most recently.
If nil, the activity has not yet been dispatched or was last dispatched to an unversioned worker.
"""
@property
def priority(self) -> temporalio.api.common.v1.message_pb2.Priority:
"""Priority metadata."""
state_transition_count: builtins.int
"""Incremented each time the activity's state is mutated in persistence."""
state_size_bytes: builtins.int
"""Updated once on scheduled and once on terminal status."""
@property
def search_attributes(
self,
) -> temporalio.api.common.v1.message_pb2.SearchAttributes: ...
@property
def header(self) -> temporalio.api.common.v1.message_pb2.Header: ...
@property
def user_metadata(self) -> temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata:
"""Metadata for use by user interfaces to display the fixed as-of-start summary and details of the activity."""
canceled_reason: builtins.str
"""Set if activity cancelation was requested."""
@property
def links(
self,
) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[
temporalio.api.common.v1.message_pb2.Link
]:
"""Links to related entities, such as the entity that started this activity."""
total_heartbeat_count: builtins.int
"""Total number of heartbeats recorded across all attempts of this activity, including retries."""
def __init__(
self,
*,
activity_id: builtins.str = ...,
run_id: builtins.str = ...,
activity_type: temporalio.api.common.v1.message_pb2.ActivityType | None = ...,
status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType = ...,
run_state: temporalio.api.enums.v1.workflow_pb2.PendingActivityState.ValueType = ...,
task_queue: builtins.str = ...,
schedule_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
schedule_to_start_timeout: google.protobuf.duration_pb2.Duration | None = ...,
start_to_close_timeout: google.protobuf.duration_pb2.Duration | None = ...,
heartbeat_timeout: google.protobuf.duration_pb2.Duration | None = ...,
retry_policy: temporalio.api.common.v1.message_pb2.RetryPolicy | None = ...,
heartbeat_details: temporalio.api.common.v1.message_pb2.Payloads | None = ...,
last_heartbeat_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
last_started_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
attempt: builtins.int = ...,
execution_duration: google.protobuf.duration_pb2.Duration | None = ...,
schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
expiration_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
close_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
last_failure: temporalio.api.failure.v1.message_pb2.Failure | None = ...,
last_worker_identity: builtins.str = ...,
current_retry_interval: google.protobuf.duration_pb2.Duration | None = ...,
last_attempt_complete_time: google.protobuf.timestamp_pb2.Timestamp
| None = ...,
next_attempt_schedule_time: google.protobuf.timestamp_pb2.Timestamp
| None = ...,
last_deployment_version: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentVersion
| None = ...,
priority: temporalio.api.common.v1.message_pb2.Priority | None = ...,
state_transition_count: builtins.int = ...,
state_size_bytes: builtins.int = ...,
search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
| None = ...,
header: temporalio.api.common.v1.message_pb2.Header | None = ...,
user_metadata: temporalio.api.sdk.v1.user_metadata_pb2.UserMetadata
| None = ...,
canceled_reason: builtins.str = ...,
links: collections.abc.Iterable[temporalio.api.common.v1.message_pb2.Link]
| None = ...,
total_heartbeat_count: builtins.int = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"activity_type",
b"activity_type",
"close_time",
b"close_time",
"current_retry_interval",
b"current_retry_interval",
"execution_duration",
b"execution_duration",
"expiration_time",
b"expiration_time",
"header",
b"header",
"heartbeat_details",
b"heartbeat_details",
"heartbeat_timeout",
b"heartbeat_timeout",
"last_attempt_complete_time",
b"last_attempt_complete_time",
"last_deployment_version",
b"last_deployment_version",
"last_failure",
b"last_failure",
"last_heartbeat_time",
b"last_heartbeat_time",
"last_started_time",
b"last_started_time",
"next_attempt_schedule_time",
b"next_attempt_schedule_time",
"priority",
b"priority",
"retry_policy",
b"retry_policy",
"schedule_time",
b"schedule_time",
"schedule_to_close_timeout",
b"schedule_to_close_timeout",
"schedule_to_start_timeout",
b"schedule_to_start_timeout",
"search_attributes",
b"search_attributes",
"start_to_close_timeout",
b"start_to_close_timeout",
"user_metadata",
b"user_metadata",
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"activity_id",
b"activity_id",
"activity_type",
b"activity_type",
"attempt",
b"attempt",
"canceled_reason",
b"canceled_reason",
"close_time",
b"close_time",
"current_retry_interval",
b"current_retry_interval",
"execution_duration",
b"execution_duration",
"expiration_time",
b"expiration_time",
"header",
b"header",
"heartbeat_details",
b"heartbeat_details",
"heartbeat_timeout",
b"heartbeat_timeout",
"last_attempt_complete_time",
b"last_attempt_complete_time",
"last_deployment_version",
b"last_deployment_version",
"last_failure",
b"last_failure",
"last_heartbeat_time",
b"last_heartbeat_time",
"last_started_time",
b"last_started_time",
"last_worker_identity",
b"last_worker_identity",
"links",
b"links",
"next_attempt_schedule_time",
b"next_attempt_schedule_time",
"priority",
b"priority",
"retry_policy",
b"retry_policy",
"run_id",
b"run_id",
"run_state",
b"run_state",
"schedule_time",
b"schedule_time",
"schedule_to_close_timeout",
b"schedule_to_close_timeout",
"schedule_to_start_timeout",
b"schedule_to_start_timeout",
"search_attributes",
b"search_attributes",
"start_to_close_timeout",
b"start_to_close_timeout",
"state_size_bytes",
b"state_size_bytes",
"state_transition_count",
b"state_transition_count",
"status",
b"status",
"task_queue",
b"task_queue",
"total_heartbeat_count",
b"total_heartbeat_count",
"user_metadata",
b"user_metadata",
],
) -> None: ...
global___ActivityExecutionInfo = ActivityExecutionInfo
class ActivityExecutionListInfo(google.protobuf.message.Message):
"""Limited activity information returned in the list response.
When adding fields here, ensure that it is also present in ActivityExecutionInfo (note that it
may already be present in ActivityExecutionInfo but not at the top-level).
"""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACTIVITY_ID_FIELD_NUMBER: builtins.int
RUN_ID_FIELD_NUMBER: builtins.int
ACTIVITY_TYPE_FIELD_NUMBER: builtins.int
SCHEDULE_TIME_FIELD_NUMBER: builtins.int
CLOSE_TIME_FIELD_NUMBER: builtins.int
STATUS_FIELD_NUMBER: builtins.int
SEARCH_ATTRIBUTES_FIELD_NUMBER: builtins.int
TASK_QUEUE_FIELD_NUMBER: builtins.int
STATE_TRANSITION_COUNT_FIELD_NUMBER: builtins.int
STATE_SIZE_BYTES_FIELD_NUMBER: builtins.int
EXECUTION_DURATION_FIELD_NUMBER: builtins.int
activity_id: builtins.str
"""A unique identifier of this activity within its namespace along with run ID (below)."""
run_id: builtins.str
"""The run ID of the standalone activity."""
@property
def activity_type(self) -> temporalio.api.common.v1.message_pb2.ActivityType:
"""The type of the activity, a string that maps to a registered activity on a worker."""
@property
def schedule_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""Time the activity was originally scheduled via a StartActivityExecution request."""
@property
def close_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
"""If the activity is in a terminal status, this field represents the time the activity transitioned to that status."""
status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType
"""Only scheduled and terminal statuses appear here. More detailed information in PendingActivityInfo but not
available in the list response.
"""
@property
def search_attributes(
self,
) -> temporalio.api.common.v1.message_pb2.SearchAttributes:
"""Search attributes from the start request."""
task_queue: builtins.str
"""The task queue this activity was scheduled on when it was originally started, updated on activity options update."""
state_transition_count: builtins.int
"""Updated on terminal status."""
state_size_bytes: builtins.int
"""Updated once on scheduled and once on terminal status."""
@property
def execution_duration(self) -> google.protobuf.duration_pb2.Duration:
"""The difference between close time and scheduled time.
This field is only populated if the activity is closed.
"""
def __init__(
self,
*,
activity_id: builtins.str = ...,
run_id: builtins.str = ...,
activity_type: temporalio.api.common.v1.message_pb2.ActivityType | None = ...,
schedule_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
close_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
status: temporalio.api.enums.v1.activity_pb2.ActivityExecutionStatus.ValueType = ...,
search_attributes: temporalio.api.common.v1.message_pb2.SearchAttributes
| None = ...,
task_queue: builtins.str = ...,
state_transition_count: builtins.int = ...,
state_size_bytes: builtins.int = ...,
execution_duration: google.protobuf.duration_pb2.Duration | None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"activity_type",
b"activity_type",
"close_time",
b"close_time",
"execution_duration",
b"execution_duration",
"schedule_time",
b"schedule_time",
"search_attributes",
b"search_attributes",
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"activity_id",
b"activity_id",
"activity_type",
b"activity_type",
"close_time",
b"close_time",
"execution_duration",
b"execution_duration",
"run_id",
b"run_id",
"schedule_time",
b"schedule_time",
"search_attributes",
b"search_attributes",
"state_size_bytes",
b"state_size_bytes",
"state_transition_count",
b"state_transition_count",
"status",
b"status",
"task_queue",
b"task_queue",
],
) -> None: ...
global___ActivityExecutionListInfo = ActivityExecutionListInfo
class CallbackInfo(google.protobuf.message.Message):
"""CallbackInfo contains the state of an attached activity callback."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
class ActivityClosed(google.protobuf.message.Message):
"""Trigger for when the activity is closed."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor
def __init__(
self,
) -> None: ...
class Trigger(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ACTIVITY_CLOSED_FIELD_NUMBER: builtins.int
@property
def activity_closed(self) -> global___CallbackInfo.ActivityClosed: ...
def __init__(
self,
*,
activity_closed: global___CallbackInfo.ActivityClosed | None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal[
"activity_closed", b"activity_closed", "variant", b"variant"
],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal[
"activity_closed", b"activity_closed", "variant", b"variant"
],
) -> None: ...
def WhichOneof(
self, oneof_group: typing_extensions.Literal["variant", b"variant"]
) -> typing_extensions.Literal["activity_closed"] | None: ...
TRIGGER_FIELD_NUMBER: builtins.int
INFO_FIELD_NUMBER: builtins.int
@property
def trigger(self) -> global___CallbackInfo.Trigger:
"""Trigger for this callback."""
@property
def info(self) -> temporalio.api.callback.v1.message_pb2.CallbackInfo:
"""Common callback info."""
def __init__(
self,
*,
trigger: global___CallbackInfo.Trigger | None = ...,
info: temporalio.api.callback.v1.message_pb2.CallbackInfo | None = ...,
) -> None: ...
def HasField(
self,
field_name: typing_extensions.Literal["info", b"info", "trigger", b"trigger"],
) -> builtins.bool: ...
def ClearField(
self,
field_name: typing_extensions.Literal["info", b"info", "trigger", b"trigger"],
) -> None: ...
global___CallbackInfo = CallbackInfo