GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — sdk-python/temporalio/client/_interceptor.py at main · temporalio/sdk-python Expand file tree/ Copy path_interceptor.pyMore file actions 1007 lines (787 loc) · 30.2 KB / Copy path_interceptor.pyFile metadata and controls1007 lines (787 loc) · 30.2 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 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 """Client support for accessing Temporal.""" from __future__ import annotations from collections.abc import ( Awaitable, Callable, Mapping, Sequence, ) from dataclasses import dataclass from datetime import timedelta from typing import ( TYPE_CHECKING, Any, ) import temporalio.api.common.v1 import temporalio.api.workflowservice.v1 import temporalio.common import temporalio.nexus from temporalio.converter import DataConverter if TYPE_CHECKING: from ._activity import ( ActivityExecutionAsyncIterator, ActivityExecutionCount, ActivityExecutionDescription, ActivityExecutionOptions, ActivityHandle, ActivityOptionsUpdate, AsyncActivityIDReference, ) from ._nexus import ( NexusOperationExecutionAsyncIterator, NexusOperationExecutionCount, NexusOperationExecutionDescription, NexusOperationHandle, ) from ._schedule import ( Schedule, ScheduleAsyncIterator, ScheduleBackfill, ScheduleDescription, ScheduleHandle, ScheduleOverlapPolicy, ScheduleUpdate, ScheduleUpdateInput, ) from ._worker_versioning import ( BuildIdOp, TaskReachabilityType, WorkerBuildIdVersionSets, WorkerTaskReachability, ) from ._workflow import ( WorkflowExecutionAsyncIterator, WorkflowExecutionCount, WorkflowExecutionDescription, WorkflowHandle, WorkflowHistoryEventAsyncIterator, WorkflowHistoryEventFilterType, WorkflowUpdateHandle, WorkflowUpdateStage, ) @dataclass class StartWorkflowInput: """Input for :py:meth:`OutboundInterceptor.start_workflow`.""" workflow: str args: Sequence[Any] id: str task_queue: str execution_timeout: timedelta | None run_timeout: timedelta | None task_timeout: timedelta | None id_reuse_policy: temporalio.common.WorkflowIDReusePolicy id_conflict_policy: temporalio.common.WorkflowIDConflictPolicy retry_policy: temporalio.common.RetryPolicy | None cron_schedule: str memo: Mapping[str, Any] | None search_attributes: None | ( temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes ) start_delay: timedelta | None headers: Mapping[str, temporalio.api.common.v1.Payload] start_signal: str | None start_signal_args: Sequence[Any] static_summary: str | None static_details: str | None # Type may be absent ret_type: type | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None request_eager_start: bool priority: temporalio.common.Priority versioning_override: temporalio.common.VersioningOverride | None = None time_skipping_config: temporalio.api.common.v1.TimeSkippingConfig | None = None @dataclass class CancelWorkflowInput: """Input for :py:meth:`OutboundInterceptor.cancel_workflow`.""" id: str run_id: str | None first_execution_run_id: str | None reason: str rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class DescribeWorkflowInput: """Input for :py:meth:`OutboundInterceptor.describe_workflow`.""" id: str run_id: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class FetchWorkflowHistoryEventsInput: """Input for :py:meth:`OutboundInterceptor.fetch_workflow_history_events`.""" id: str run_id: str | None page_size: int | None next_page_token: bytes | None wait_new_event: bool event_filter_type: WorkflowHistoryEventFilterType skip_archival: bool rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class ListWorkflowsInput: """Input for :py:meth:`OutboundInterceptor.list_workflows`.""" query: str | None page_size: int next_page_token: bytes | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None limit: int | None @dataclass class CountWorkflowsInput: """Input for :py:meth:`OutboundInterceptor.count_workflows`.""" query: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class QueryWorkflowInput: """Input for :py:meth:`OutboundInterceptor.query_workflow`.""" id: str run_id: str | None query: str args: Sequence[Any] reject_condition: temporalio.common.QueryRejectCondition | None headers: Mapping[str, temporalio.api.common.v1.Payload] # Type may be absent ret_type: type | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class SignalWorkflowInput: """Input for :py:meth:`OutboundInterceptor.signal_workflow`.""" id: str run_id: str | None signal: str args: Sequence[Any] headers: Mapping[str, temporalio.api.common.v1.Payload] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class TerminateWorkflowInput: """Input for :py:meth:`OutboundInterceptor.terminate_workflow`.""" id: str run_id: str | None first_execution_run_id: str | None args: Sequence[Any] reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class StartActivityInput: """Input for :py:meth:`OutboundInterceptor.start_activity`.""" activity_type: str args: Sequence[Any] id: str task_queue: str result_type: type | None schedule_to_close_timeout: timedelta | None start_to_close_timeout: timedelta | None schedule_to_start_timeout: timedelta | None heartbeat_timeout: timedelta | None id_reuse_policy: temporalio.common.ActivityIDReusePolicy id_conflict_policy: temporalio.common.ActivityIDConflictPolicy retry_policy: temporalio.common.RetryPolicy | None priority: temporalio.common.Priority search_attributes: temporalio.common.TypedSearchAttributes | None summary: str | None start_delay: timedelta | None headers: Mapping[str, temporalio.api.common.v1.Payload] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class CancelActivityInput: """Input for :py:meth:`OutboundInterceptor.cancel_activity`.""" activity_id: str activity_run_id: str | None reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class TerminateActivityInput: """Input for :py:meth:`OutboundInterceptor.terminate_activity`.""" activity_id: str activity_run_id: str | None reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class PauseActivityInput: """Input for :py:meth:`OutboundInterceptor.pause_activity`. .. warning:: This API is experimental. """ activity_id: str activity_run_id: str | None reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UnpauseActivityInput: """Input for :py:meth:`OutboundInterceptor.unpause_activity`. .. warning:: This API is experimental. """ activity_id: str activity_run_id: str | None reason: str | None jitter: timedelta | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UpdateActivityOptionsInput: """Input for :py:meth:`OutboundInterceptor.update_activity_options`. .. warning:: This API is experimental. """ activity_id: str activity_run_id: str | None updates: Sequence[ActivityOptionsUpdate[Any]] restore_original: bool rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class DescribeActivityInput: """Input for :py:meth:`OutboundInterceptor.describe_activity`.""" activity_id: str activity_run_id: str | None include_input: bool include_outcome: bool include_heartbeat_details: bool include_last_failure: bool rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class ListActivitiesInput: """Input for :py:meth:`OutboundInterceptor.list_activities`.""" query: str | None page_size: int next_page_token: bytes | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None limit: int | None @dataclass class CountActivitiesInput: """Input for :py:meth:`OutboundInterceptor.count_activities`.""" query: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class StartWorkflowUpdateInput: """Input for :py:meth:`OutboundInterceptor.start_workflow_update`.""" id: str run_id: str | None first_execution_run_id: str | None update_id: str | None update: str args: Sequence[Any] wait_for_stage: WorkflowUpdateStage headers: Mapping[str, temporalio.api.common.v1.Payload] ret_type: type | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UpdateWithStartUpdateWorkflowInput: """Update input for :py:meth:`OutboundInterceptor.start_update_with_start_workflow`.""" update_id: str | None update: str args: Sequence[Any] wait_for_stage: WorkflowUpdateStage headers: Mapping[str, temporalio.api.common.v1.Payload] ret_type: type | None @dataclass class UpdateWithStartStartWorkflowInput: """StartWorkflow input for :py:meth:`OutboundInterceptor.start_update_with_start_workflow`.""" # Similar to StartWorkflowInput but without e.g. run_id, start_signal, # start_signal_args, request_eager_start. workflow: str args: Sequence[Any] id: str task_queue: str execution_timeout: timedelta | None run_timeout: timedelta | None task_timeout: timedelta | None id_reuse_policy: temporalio.common.WorkflowIDReusePolicy id_conflict_policy: temporalio.common.WorkflowIDConflictPolicy retry_policy: temporalio.common.RetryPolicy | None cron_schedule: str memo: Mapping[str, Any] | None search_attributes: None | ( temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes ) start_delay: timedelta | None headers: Mapping[str, temporalio.api.common.v1.Payload] static_summary: str | None static_details: str | None # Type may be absent ret_type: type | None priority: temporalio.common.Priority versioning_override: temporalio.common.VersioningOverride | None = None time_skipping_config: temporalio.api.common.v1.TimeSkippingConfig | None = None @dataclass class StartWorkflowUpdateWithStartInput: """Input for :py:meth:`OutboundInterceptor.start_update_with_start_workflow`. The ``rpc_metadata`` and ``rpc_timeout`` fields are authoritative for the ``execute_multi_operation`` gRPC call. Interceptors that wish to set RPC metadata should modify :py:attr:`rpc_metadata` on this object. """ start_workflow_input: UpdateWithStartStartWorkflowInput update_workflow_input: UpdateWithStartUpdateWorkflowInput rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None _on_start: Callable[ [temporalio.api.workflowservice.v1.StartWorkflowExecutionResponse], None ] _on_start_error: Callable[[BaseException], None] @dataclass class HeartbeatAsyncActivityInput: """Input for :py:meth:`OutboundInterceptor.heartbeat_async_activity`.""" id_or_token: AsyncActivityIDReference | bytes details: Sequence[Any] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None data_converter_override: DataConverter | None = None @dataclass class CompleteAsyncActivityInput: """Input for :py:meth:`OutboundInterceptor.complete_async_activity`.""" id_or_token: AsyncActivityIDReference | bytes result: Any | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None data_converter_override: DataConverter | None = None @dataclass class FailAsyncActivityInput: """Input for :py:meth:`OutboundInterceptor.fail_async_activity`.""" id_or_token: AsyncActivityIDReference | bytes error: Exception last_heartbeat_details: Sequence[Any] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None data_converter_override: DataConverter | None = None @dataclass class ReportCancellationAsyncActivityInput: """Input for :py:meth:`OutboundInterceptor.report_cancellation_async_activity`.""" id_or_token: AsyncActivityIDReference | bytes details: Sequence[Any] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None data_converter_override: DataConverter | None = None @dataclass class CreateScheduleInput: """Input for :py:meth:`OutboundInterceptor.create_schedule`.""" id: str schedule: Schedule trigger_immediately: bool backfill: Sequence[ScheduleBackfill] memo: Mapping[str, Any] | None search_attributes: None | ( temporalio.common.SearchAttributes | temporalio.common.TypedSearchAttributes ) rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class ListSchedulesInput: """Input for :py:meth:`OutboundInterceptor.list_schedules`.""" page_size: int next_page_token: bytes | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None query: str | None = None @dataclass class BackfillScheduleInput: """Input for :py:meth:`OutboundInterceptor.backfill_schedule`.""" id: str backfills: Sequence[ScheduleBackfill] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class DeleteScheduleInput: """Input for :py:meth:`OutboundInterceptor.delete_schedule`.""" id: str rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class DescribeScheduleInput: """Input for :py:meth:`OutboundInterceptor.describe_schedule`.""" id: str rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class PauseScheduleInput: """Input for :py:meth:`OutboundInterceptor.pause_schedule`.""" id: str note: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class TriggerScheduleInput: """Input for :py:meth:`OutboundInterceptor.trigger_schedule`.""" id: str overlap: ScheduleOverlapPolicy | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UnpauseScheduleInput: """Input for :py:meth:`OutboundInterceptor.unpause_schedule`.""" id: str note: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UpdateScheduleInput: """Input for :py:meth:`OutboundInterceptor.update_schedule`.""" id: str updater: Callable[ [ScheduleUpdateInput], ScheduleUpdate | None | Awaitable[ScheduleUpdate | None], ] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class UpdateWorkerBuildIdCompatibilityInput: """Input for :py:meth:`OutboundInterceptor.update_worker_build_id_compatibility`.""" task_queue: str operation: BuildIdOp rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class GetWorkerBuildIdCompatibilityInput: """Input for :py:meth:`OutboundInterceptor.get_worker_build_id_compatibility`.""" task_queue: str max_sets: int | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class GetWorkerTaskReachabilityInput: """Input for :py:meth:`OutboundInterceptor.get_worker_task_reachability`.""" build_ids: Sequence[str] task_queues: Sequence[str] reachability: TaskReachabilityType | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class StartNexusOperationInput: """Input for :py:meth:`OutboundInterceptor.start_nexus_operation`. .. warning:: This API is experimental and unstable. """ operation: str arg: Any id: str endpoint: str service: str result_type: type | None schedule_to_close_timeout: timedelta | None schedule_to_start_timeout: timedelta | None start_to_close_timeout: timedelta | None id_reuse_policy: temporalio.common.NexusOperationIDReusePolicy id_conflict_policy: temporalio.common.NexusOperationIDConflictPolicy search_attributes: temporalio.common.TypedSearchAttributes | None summary: str | None headers: Mapping[str, str] rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None completion_callbacks: Sequence[temporalio.nexus.CompletionCallback[Any]] = () @dataclass class DescribeNexusOperationInput: """Input for :py:meth:`OutboundInterceptor.describe_nexus_operation`. .. warning:: This API is experimental and unstable. """ operation_id: str run_id: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class GetNexusOperationResultInput: """Input for :py:meth:`OutboundInterceptor.get_nexus_operation_result`. .. warning:: This API is experimental and unstable. """ operation_id: str run_id: str | None endpoint: str service: str operation: str rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None result_type: type[Any] | None @dataclass class CancelNexusOperationInput: """Input for :py:meth:`OutboundInterceptor.cancel_nexus_operation`. .. warning:: This API is experimental and unstable. """ operation_id: str run_id: str | None reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class TerminateNexusOperationInput: """Input for :py:meth:`OutboundInterceptor.terminate_nexus_operation`. .. warning:: This API is experimental and unstable. """ operation_id: str run_id: str | None reason: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class ListNexusOperationsInput: """Input for :py:meth:`OutboundInterceptor.list_nexus_operations`. .. warning:: This API is experimental and unstable. """ query: str | None page_size: int next_page_token: bytes | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None limit: int | None @dataclass class CountNexusOperationsInput: """Input for :py:meth:`OutboundInterceptor.count_nexus_operations`. .. warning:: This API is experimental and unstable. """ query: str | None rpc_metadata: Mapping[str, str | bytes] rpc_timeout: timedelta | None @dataclass class Interceptor: """Interceptor for clients. This should be extended by any client interceptors. """ def intercept_client(self, next: OutboundInterceptor) -> OutboundInterceptor: """Method called for intercepting a client. Args: next: The underlying outbound interceptor this interceptor should delegate to. Returns: The new interceptor that will be called for each client call. """ return next class OutboundInterceptor: """OutboundInterceptor for intercepting client calls. This should be extended by any client outbound interceptors. """ def __init__(self, next: OutboundInterceptor) -> None: """Create the outbound interceptor. Args: next: The next interceptor in the chain. The default implementation of all calls is to delegate to the next interceptor. """ self.next = next ### Workflow calls async def start_workflow( self, input: StartWorkflowInput ) -> WorkflowHandle[Any, Any]: """Called for every :py:meth:`Client.start_workflow` call.""" return await self.next.start_workflow(input) async def cancel_workflow(self, input: CancelWorkflowInput) -> None: """Called for every :py:meth:`WorkflowHandle.cancel` call.""" await self.next.cancel_workflow(input) async def describe_workflow( self, input: DescribeWorkflowInput ) -> WorkflowExecutionDescription: """Called for every :py:meth:`WorkflowHandle.describe` call.""" return await self.next.describe_workflow(input) def fetch_workflow_history_events( self, input: FetchWorkflowHistoryEventsInput ) -> WorkflowHistoryEventAsyncIterator: """Called for every :py:meth:`WorkflowHandle.fetch_history_events` call.""" return self.next.fetch_workflow_history_events(input) def list_workflows( self, input: ListWorkflowsInput ) -> WorkflowExecutionAsyncIterator: """Called for every :py:meth:`Client.list_workflows` call.""" return self.next.list_workflows(input) async def count_workflows( self, input: CountWorkflowsInput ) -> WorkflowExecutionCount: """Called for every :py:meth:`Client.count_workflows` call.""" return await self.next.count_workflows(input) async def query_workflow(self, input: QueryWorkflowInput) -> Any: """Called for every :py:meth:`WorkflowHandle.query` call.""" return await self.next.query_workflow(input) async def signal_workflow(self, input: SignalWorkflowInput) -> None: """Called for every :py:meth:`WorkflowHandle.signal` call.""" await self.next.signal_workflow(input) async def terminate_workflow(self, input: TerminateWorkflowInput) -> None: """Called for every :py:meth:`WorkflowHandle.terminate` call.""" await self.next.terminate_workflow(input) ### Activity calls async def start_activity(self, input: StartActivityInput) -> ActivityHandle[Any]: """Called for every :py:meth:`Client.start_activity` call.""" return await self.next.start_activity(input) async def cancel_activity(self, input: CancelActivityInput) -> None: """Called for every :py:meth:`ActivityHandle.cancel` call.""" await self.next.cancel_activity(input) async def terminate_activity(self, input: TerminateActivityInput) -> None: """Called for every :py:meth:`ActivityHandle.terminate` call.""" await self.next.terminate_activity(input) async def pause_activity(self, input: PauseActivityInput) -> None: """Called for every :py:meth:`ActivityHandle.pause` call. .. warning:: This API is experimental. """ await self.next.pause_activity(input) async def unpause_activity(self, input: UnpauseActivityInput) -> None: """Called for every :py:meth:`ActivityHandle.unpause` call. .. warning:: This API is experimental. """ await self.next.unpause_activity(input) async def update_activity_options( self, input: UpdateActivityOptionsInput ) -> ActivityExecutionOptions: """Called for every :py:meth:`ActivityHandle.update_options` and :py:meth:`ActivityHandle.restore_original_options` call. .. warning:: This API is experimental. """ return await self.next.update_activity_options(input) async def describe_activity( self, input: DescribeActivityInput ) -> ActivityExecutionDescription: """Called for every :py:meth:`ActivityHandle.describe` call.""" return await self.next.describe_activity(input) def list_activities( self, input: ListActivitiesInput ) -> ActivityExecutionAsyncIterator: """Called for every :py:meth:`Client.list_activities` call.""" return self.next.list_activities(input) async def count_activities( self, input: CountActivitiesInput ) -> ActivityExecutionCount: """Called for every :py:meth:`Client.count_activities` call.""" return await self.next.count_activities(input) async def start_workflow_update( self, input: StartWorkflowUpdateInput ) -> WorkflowUpdateHandle[Any]: """Called for every :py:meth:`WorkflowHandle.start_update` and :py:meth:`WorkflowHandle.execute_update` call.""" return await self.next.start_workflow_update(input) async def start_update_with_start_workflow( self, input: StartWorkflowUpdateWithStartInput ) -> WorkflowUpdateHandle[Any]: """Called for every :py:meth:`Client.start_update_with_start_workflow` and :py:meth:`Client.execute_update_with_start_workflow` call.""" return await self.next.start_update_with_start_workflow(input) ### Async activity calls async def heartbeat_async_activity( self, input: HeartbeatAsyncActivityInput ) -> None: """Called for every :py:meth:`AsyncActivityHandle.heartbeat` call.""" await self.next.heartbeat_async_activity(input) async def complete_async_activity(self, input: CompleteAsyncActivityInput) -> None: """Called for every :py:meth:`AsyncActivityHandle.complete` call.""" await self.next.complete_async_activity(input) async def fail_async_activity(self, input: FailAsyncActivityInput) -> None: """Called for every :py:meth:`AsyncActivityHandle.fail` call.""" await self.next.fail_async_activity(input) async def report_cancellation_async_activity( self, input: ReportCancellationAsyncActivityInput ) -> None: """Called for every :py:meth:`AsyncActivityHandle.report_cancellation` call.""" await self.next.report_cancellation_async_activity(input) ### Schedule calls async def create_schedule(self, input: CreateScheduleInput) -> ScheduleHandle: """Called for every :py:meth:`Client.create_schedule` call.""" return await self.next.create_schedule(input) def list_schedules(self, input: ListSchedulesInput) -> ScheduleAsyncIterator: """Called for every :py:meth:`Client.list_schedules` call.""" return self.next.list_schedules(input) async def backfill_schedule(self, input: BackfillScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.backfill` call.""" await self.next.backfill_schedule(input) async def delete_schedule(self, input: DeleteScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.delete` call.""" await self.next.delete_schedule(input) async def describe_schedule( self, input: DescribeScheduleInput ) -> ScheduleDescription: """Called for every :py:meth:`ScheduleHandle.describe` call.""" return await self.next.describe_schedule(input) async def pause_schedule(self, input: PauseScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.pause` call.""" await self.next.pause_schedule(input) async def trigger_schedule(self, input: TriggerScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.trigger` call.""" await self.next.trigger_schedule(input) async def unpause_schedule(self, input: UnpauseScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.unpause` call.""" await self.next.unpause_schedule(input) async def update_schedule(self, input: UpdateScheduleInput) -> None: """Called for every :py:meth:`ScheduleHandle.update` call.""" await self.next.update_schedule(input) async def update_worker_build_id_compatibility( self, input: UpdateWorkerBuildIdCompatibilityInput ) -> None: """Called for every :py:meth:`Client.update_worker_build_id_compatibility` call.""" await self.next.update_worker_build_id_compatibility(input) async def get_worker_build_id_compatibility( self, input: GetWorkerBuildIdCompatibilityInput ) -> WorkerBuildIdVersionSets: """Called for every :py:meth:`Client.get_worker_build_id_compatibility` call.""" return await self.next.get_worker_build_id_compatibility(input) async def get_worker_task_reachability( self, input: GetWorkerTaskReachabilityInput ) -> WorkerTaskReachability: """Called for every :py:meth:`Client.get_worker_task_reachability` call.""" return await self.next.get_worker_task_reachability(input) ### Nexus operation calls async def start_nexus_operation( self, input: StartNexusOperationInput ) -> NexusOperationHandle[Any]: """Called for every :py:meth:`NexusClient.start_operation` call. .. warning:: This API is experimental and unstable. """ return await self.next.start_nexus_operation(input) async def describe_nexus_operation( self, input: DescribeNexusOperationInput ) -> NexusOperationExecutionDescription: """Called for every :py:meth:`NexusOperationHandle.describe` call. .. warning:: This API is experimental and unstable. """ return await self.next.describe_nexus_operation(input) async def get_nexus_operation_result( self, input: GetNexusOperationResultInput ) -> Any: """Called for every :py:meth:`NexusOperationHandle.result` call. .. warning:: This API is experimental and unstable. """ return await self.next.get_nexus_operation_result(input) async def cancel_nexus_operation(self, input: CancelNexusOperationInput) -> None: """Called for every :py:meth:`NexusOperationHandle.cancel` call. .. warning:: This API is experimental and unstable. """ await self.next.cancel_nexus_operation(input) async def terminate_nexus_operation( self, input: TerminateNexusOperationInput ) -> None: """Called for every :py:meth:`NexusOperationHandle.terminate` call. .. warning:: This API is experimental and unstable. """ await self.next.terminate_nexus_operation(input) def list_nexus_operations( self, input: ListNexusOperationsInput ) -> NexusOperationExecutionAsyncIterator: """Called for every :py:meth:`Client.list_nexus_operations` call. .. warning:: This API is experimental and unstable. """ return self.next.list_nexus_operations(input) async def count_nexus_operations( self, input: CountNexusOperationsInput |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |