From 38d9eefce2795f76fefc7fb5c487d85a5d1f51d9 Mon Sep 17 00:00:00 2001 From: Dan Davison Date: Mon, 1 Jul 2024 16:02:02 +0100 Subject: [PATCH] Use ruff to auto-format code and sort imports. (#566) * Use ruff to format and sort imports --- poetry.lock | 208 ++------ pyproject.toml | 22 +- temporalio/activity.py | 14 +- temporalio/api/batch/v1/message_pb2.py | 13 +- temporalio/api/batch/v1/message_pb2.pyi | 5 +- temporalio/api/cluster/v1/message_pb2.py | 1 + temporalio/api/cluster/v1/message_pb2.pyi | 5 +- temporalio/api/cluster/v1/message_pb2_grpc.py | 1 + temporalio/api/command/v1/message_pb2.py | 105 ++-- temporalio/api/command/v1/message_pb2.pyi | 17 +- temporalio/api/common/v1/grpc_status_pb2.py | 3 +- temporalio/api/common/v1/grpc_status_pb2.pyi | 4 +- temporalio/api/common/v1/message_pb2.py | 43 +- temporalio/api/common/v1/message_pb2.pyi | 5 +- .../api/enums/v1/batch_operation_pb2.py | 1 + .../api/enums/v1/batch_operation_pb2.pyi | 6 +- temporalio/api/enums/v1/command_type_pb2.py | 1 + temporalio/api/enums/v1/command_type_pb2.pyi | 6 +- temporalio/api/enums/v1/common_pb2.py | 1 + temporalio/api/enums/v1/common_pb2.pyi | 62 ++- temporalio/api/enums/v1/event_type_pb2.py | 1 + temporalio/api/enums/v1/event_type_pb2.pyi | 18 +- temporalio/api/enums/v1/failed_cause_pb2.py | 9 +- temporalio/api/enums/v1/failed_cause_pb2.pyi | 330 +++++++++---- temporalio/api/enums/v1/namespace_pb2.py | 1 + temporalio/api/enums/v1/namespace_pb2.pyi | 6 +- temporalio/api/enums/v1/query_pb2.py | 1 + temporalio/api/enums/v1/query_pb2.pyi | 6 +- temporalio/api/enums/v1/reset_pb2.py | 1 + temporalio/api/enums/v1/reset_pb2.pyi | 6 +- temporalio/api/enums/v1/schedule_pb2.py | 1 + temporalio/api/enums/v1/schedule_pb2.pyi | 6 +- temporalio/api/enums/v1/task_queue_pb2.py | 1 + temporalio/api/enums/v1/task_queue_pb2.pyi | 10 +- temporalio/api/enums/v1/update_pb2.py | 1 + temporalio/api/enums/v1/update_pb2.pyi | 38 +- temporalio/api/enums/v1/workflow_pb2.py | 1 + temporalio/api/enums/v1/workflow_pb2.pyi | 18 +- temporalio/api/errordetails/v1/message_pb2.py | 35 +- .../api/errordetails/v1/message_pb2.pyi | 5 +- temporalio/api/export/v1/message_pb2.py | 5 +- temporalio/api/export/v1/message_pb2.pyi | 5 +- temporalio/api/failure/v1/message_pb2.py | 23 +- temporalio/api/failure/v1/message_pb2.pyi | 5 +- temporalio/api/filter/v1/message_pb2.py | 9 +- temporalio/api/filter/v1/message_pb2.pyi | 5 +- temporalio/api/history/v1/message_pb2.py | 441 +++++++++-------- temporalio/api/history/v1/message_pb2.pyi | 29 +- temporalio/api/interaction/v1/message_pb2.py | 9 +- temporalio/api/interaction/v1/message_pb2.pyi | 9 +- temporalio/api/namespace/v1/message_pb2.py | 23 +- temporalio/api/namespace/v1/message_pb2.pyi | 13 +- temporalio/api/nexus/v1/message_pb2.py | 39 +- temporalio/api/nexus/v1/message_pb2.pyi | 5 +- .../v1/request_response_pb2.py | 59 +-- .../v1/request_response_pb2.pyi | 5 +- .../v1/request_response_pb2_grpc.py | 1 + .../api/operatorservice/v1/service_pb2.py | 1 + .../api/operatorservice/v1/service_pb2.pyi | 1 + .../operatorservice/v1/service_pb2_grpc.py | 1 + .../operatorservice/v1/service_pb2_grpc.pyi | 39 +- temporalio/api/protocol/v1/message_pb2.py | 3 +- temporalio/api/protocol/v1/message_pb2.pyi | 4 +- temporalio/api/query/v1/message_pb2.py | 7 +- temporalio/api/query/v1/message_pb2.pyi | 5 +- temporalio/api/replication/v1/message_pb2.py | 7 +- temporalio/api/replication/v1/message_pb2.pyi | 5 +- temporalio/api/schedule/v1/message_pb2.py | 33 +- temporalio/api/schedule/v1/message_pb2.pyi | 5 +- .../api/sdk/v1/enhanced_stack_trace_pb2.py | 13 +- .../api/sdk/v1/enhanced_stack_trace_pb2.pyi | 4 +- .../api/sdk/v1/task_complete_metadata_pb2.py | 3 +- .../api/sdk/v1/task_complete_metadata_pb2.pyi | 4 +- temporalio/api/sdk/v1/user_metadata_pb2.py | 3 +- temporalio/api/sdk/v1/user_metadata_pb2.pyi | 5 +- .../api/sdk/v1/workflow_metadata_pb2.py | 7 +- .../api/sdk/v1/workflow_metadata_pb2.pyi | 4 +- temporalio/api/taskqueue/v1/message_pb2.py | 41 +- temporalio/api/taskqueue/v1/message_pb2.pyi | 9 +- .../testservice/v1/request_response_pb2.py | 17 +- .../testservice/v1/request_response_pb2.pyi | 4 +- .../v1/request_response_pb2_grpc.py | 1 + temporalio/api/testservice/v1/service_pb2.py | 1 + temporalio/api/testservice/v1/service_pb2.pyi | 1 + .../api/testservice/v1/service_pb2_grpc.py | 1 + .../api/testservice/v1/service_pb2_grpc.pyi | 3 + temporalio/api/update/v1/message_pb2.py | 19 +- temporalio/api/update/v1/message_pb2.pyi | 5 +- temporalio/api/version/v1/message_pb2.py | 7 +- temporalio/api/version/v1/message_pb2.pyi | 5 +- temporalio/api/workflow/v1/message_pb2.py | 27 +- temporalio/api/workflow/v1/message_pb2.pyi | 13 +- .../v1/request_response_pb2.py | 331 ++++++------- .../v1/request_response_pb2.pyi | 41 +- .../v1/request_response_pb2_grpc.py | 1 + .../api/workflowservice/v1/service_pb2.py | 1 + .../api/workflowservice/v1/service_pb2.pyi | 1 + .../workflowservice/v1/service_pb2_grpc.py | 1 + .../workflowservice/v1/service_pb2_grpc.pyi | 199 ++------ .../activity_result/activity_result_pb2.py | 15 +- .../activity_result/activity_result_pb2.pyi | 5 +- .../proto/activity_task/activity_task_pb2.py | 9 +- .../proto/activity_task/activity_task_pb2.pyi | 7 +- temporalio/bridge/proto/bridge/bridge_pb2.py | 77 +-- temporalio/bridge/proto/bridge/bridge_pb2.pyi | 15 +- .../child_workflow/child_workflow_pb2.py | 9 +- .../child_workflow/child_workflow_pb2.pyi | 23 +- temporalio/bridge/proto/common/common_pb2.py | 3 +- temporalio/bridge/proto/common/common_pb2.pyi | 6 +- temporalio/bridge/proto/core_interface_pb2.py | 5 +- .../bridge/proto/core_interface_pb2.pyi | 9 +- .../bridge/proto/core_interface_pb2_grpc.py | 1 + .../proto/external_data/external_data_pb2.py | 5 +- .../proto/external_data/external_data_pb2.pyi | 4 +- .../bridge/proto/health/v1/health_pb2.py | 5 +- .../bridge/proto/health/v1/health_pb2.pyi | 6 +- .../workflow_activation_pb2.py | 47 +- .../workflow_activation_pb2.pyi | 11 +- .../workflow_commands_pb2.py | 65 +-- .../workflow_commands_pb2.pyi | 23 +- .../workflow_completion_pb2.py | 7 +- .../workflow_completion_pb2.pyi | 9 +- temporalio/client.py | 155 +++--- temporalio/common.py | 6 +- temporalio/contrib/opentelemetry.py | 8 +- temporalio/converter.py | 10 +- temporalio/worker/_activity.py | 34 +- temporalio/worker/_workflow_instance.py | 8 +- .../worker/workflow_sandbox/__init__.py | 1 - .../worker/workflow_sandbox/_restrictions.py | 54 ++- temporalio/workflow.py | 455 +++++++----------- tests/helpers/worker.py | 6 +- tests/test_client.py | 62 +-- tests/test_converter.py | 3 +- tests/worker/test_replayer.py | 6 +- tests/worker/test_workflow.py | 55 +-- .../worker/workflow_sandbox/test_importer.py | 4 +- .../testmodules/proto/proto_message_pb2.py | 3 +- .../testmodules/proto/proto_message_pb2.pyi | 4 +- 139 files changed, 1934 insertions(+), 1892 deletions(-) diff --git a/poetry.lock b/poetry.lock index 5f9543f7..58c612ae 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,10 +1,9 @@ -# This file is automatically @generated by Poetry and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "appdirs" version = "1.4.4" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "dev" optional = false python-versions = "*" files = [ @@ -16,7 +15,6 @@ files = [ name = "astor" version = "0.8.1" description = "Read/rewrite/write Python ASTs" -category = "dev" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,>=2.7" files = [ @@ -28,7 +26,6 @@ files = [ name = "attrs" version = "22.1.0" description = "Classes Without Boilerplate" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -46,7 +43,6 @@ tests-no-zope = ["cloudpickle", "coverage[toml] (>=5.0.2)", "hypothesis", "mypy name = "Automat" version = "20.2.0" description = "Self-service finite-state machines for the programmer on the go." -category = "dev" optional = false python-versions = "*" files = [ @@ -65,7 +61,6 @@ visualize = ["Twisted (>=16.1.1)", "graphviz (>0.5.1)"] name = "bashlex" version = "0.16" description = "Python parser for bash" -category = "dev" optional = false python-versions = ">=2.7, !=3.0, !=3.1, !=3.2, !=3.3, !=3.4" files = [ @@ -73,61 +68,10 @@ files = [ {file = "bashlex-0.16.tar.gz", hash = "sha256:dc6f017e49ce2d0fe30ad9f5206da9cd13ded073d365688c9fda525354e8c373"}, ] -[[package]] -name = "black" -version = "23.1.0" -description = "The uncompromising code formatter." -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "black-23.1.0-cp310-cp310-macosx_10_16_arm64.whl", hash = "sha256:b6a92a41ee34b883b359998f0c8e6eb8e99803aa8bf3123bf2b2e6fec505a221"}, - {file = "black-23.1.0-cp310-cp310-macosx_10_16_universal2.whl", hash = "sha256:57c18c5165c1dbe291d5306e53fb3988122890e57bd9b3dcb75f967f13411a26"}, - {file = "black-23.1.0-cp310-cp310-macosx_10_16_x86_64.whl", hash = "sha256:9880d7d419bb7e709b37e28deb5e68a49227713b623c72b2b931028ea65f619b"}, - {file = "black-23.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e6663f91b6feca5d06f2ccd49a10f254f9298cc1f7f49c46e498a0771b507104"}, - {file = "black-23.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:9afd3f493666a0cd8f8df9a0200c6359ac53940cbde049dcb1a7eb6ee2dd7074"}, - {file = "black-23.1.0-cp311-cp311-macosx_10_16_arm64.whl", hash = "sha256:bfffba28dc52a58f04492181392ee380e95262af14ee01d4bc7bb1b1c6ca8d27"}, - {file = "black-23.1.0-cp311-cp311-macosx_10_16_universal2.whl", hash = "sha256:c1c476bc7b7d021321e7d93dc2cbd78ce103b84d5a4cf97ed535fbc0d6660648"}, - {file = "black-23.1.0-cp311-cp311-macosx_10_16_x86_64.whl", hash = "sha256:382998821f58e5c8238d3166c492139573325287820963d2f7de4d518bd76958"}, - {file = "black-23.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2bf649fda611c8550ca9d7592b69f0637218c2369b7744694c5e4902873b2f3a"}, - {file = "black-23.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:121ca7f10b4a01fd99951234abdbd97728e1240be89fde18480ffac16503d481"}, - {file = "black-23.1.0-cp37-cp37m-macosx_10_16_x86_64.whl", hash = "sha256:a8471939da5e824b891b25751955be52ee7f8a30a916d570a5ba8e0f2eb2ecad"}, - {file = "black-23.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8178318cb74f98bc571eef19068f6ab5613b3e59d4f47771582f04e175570ed8"}, - {file = "black-23.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:a436e7881d33acaf2536c46a454bb964a50eff59b21b51c6ccf5a40601fbef24"}, - {file = "black-23.1.0-cp38-cp38-macosx_10_16_arm64.whl", hash = "sha256:a59db0a2094d2259c554676403fa2fac3473ccf1354c1c63eccf7ae65aac8ab6"}, - {file = "black-23.1.0-cp38-cp38-macosx_10_16_universal2.whl", hash = "sha256:0052dba51dec07ed029ed61b18183942043e00008ec65d5028814afaab9a22fd"}, - {file = "black-23.1.0-cp38-cp38-macosx_10_16_x86_64.whl", hash = "sha256:49f7b39e30f326a34b5c9a4213213a6b221d7ae9d58ec70df1c4a307cf2a1580"}, - {file = "black-23.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:162e37d49e93bd6eb6f1afc3e17a3d23a823042530c37c3c42eeeaf026f38468"}, - {file = "black-23.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:8b70eb40a78dfac24842458476135f9b99ab952dd3f2dab738c1881a9b38b753"}, - {file = "black-23.1.0-cp39-cp39-macosx_10_16_arm64.whl", hash = "sha256:a29650759a6a0944e7cca036674655c2f0f63806ddecc45ed40b7b8aa314b651"}, - {file = "black-23.1.0-cp39-cp39-macosx_10_16_universal2.whl", hash = "sha256:bb460c8561c8c1bec7824ecbc3ce085eb50005883a6203dcfb0122e95797ee06"}, - {file = "black-23.1.0-cp39-cp39-macosx_10_16_x86_64.whl", hash = "sha256:c91dfc2c2a4e50df0026f88d2215e166616e0c80e86004d0003ece0488db2739"}, - {file = "black-23.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2a951cc83ab535d248c89f300eccbd625e80ab880fbcfb5ac8afb5f01a258ac9"}, - {file = "black-23.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:0680d4380db3719ebcfb2613f34e86c8e6d15ffeabcf8ec59355c5e7b85bb555"}, - {file = "black-23.1.0-py3-none-any.whl", hash = "sha256:7a0f701d314cfa0896b9001df70a530eb2472babb76086344e688829efd97d32"}, - {file = "black-23.1.0.tar.gz", hash = "sha256:b0bd97bea8903f5a2ba7219257a44e3f1f9d00073d6cc1add68f0beec69692ac"}, -] - -[package.dependencies] -click = ">=8.0.0" -mypy-extensions = ">=0.4.3" -packaging = ">=22.0" -pathspec = ">=0.9.0" -platformdirs = ">=2" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=3.10.0.0", markers = "python_version < \"3.10\""} - -[package.extras] -colorama = ["colorama (>=0.4.3)"] -d = ["aiohttp (>=3.7.4)"] -jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"] -uvloop = ["uvloop (>=0.15.2)"] - [[package]] name = "bleach" version = "5.0.1" description = "An easy safelist-based HTML-sanitizing tool." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -147,7 +91,6 @@ dev = ["Sphinx (==4.3.2)", "black (==22.3.0)", "build (==0.8.0)", "flake8 (==4.0 name = "bracex" version = "2.3.post1" description = "Bash style brace expander." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -159,7 +102,6 @@ files = [ name = "CacheControl" version = "0.12.11" description = "httplib2 caching for requests" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -180,7 +122,6 @@ redis = ["redis (>=2.10.5)"] name = "certifi" version = "2022.9.14" description = "Python package for providing Mozilla's CA Bundle." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -192,7 +133,6 @@ files = [ name = "cffi" version = "1.15.1" description = "Foreign Function Interface for Python calling C code." -category = "dev" optional = false python-versions = "*" files = [ @@ -269,7 +209,6 @@ pycparser = "*" name = "charset-normalizer" version = "2.1.1" description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "dev" optional = false python-versions = ">=3.6.0" files = [ @@ -284,7 +223,6 @@ unicode-backport = ["unicodedata2"] name = "cibuildwheel" version = "2.17.0" description = "Build Python wheels on CI with minimal configuration." -category = "dev" optional = false python-versions = ">=3.8" files = [ @@ -308,26 +246,10 @@ dev = ["build", "click", "jinja2", "packaging (>=21.0)", "pip-tools", "pygithub" docs = ["jinja2 (>=3.1.2)", "mkdocs (==1.3.1)", "mkdocs-include-markdown-plugin (==2.8.0)", "mkdocs-macros-plugin", "pymdown-extensions"] test = ["build", "jinja2", "pytest (>=6)", "pytest-timeout", "pytest-xdist", "tomli-w", "validate-pyproject"] -[[package]] -name = "click" -version = "8.1.3" -description = "Composable command line interface toolkit" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "click-8.1.3-py3-none-any.whl", hash = "sha256:bb4d8133cb15a609f44e8213d9b391b0809795062913b383c62be0ee95b1db48"}, - {file = "click-8.1.3.tar.gz", hash = "sha256:7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"}, -] - -[package.dependencies] -colorama = {version = "*", markers = "platform_system == \"Windows\""} - [[package]] name = "colorama" version = "0.4.5" description = "Cross-platform colored terminal text." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -339,7 +261,6 @@ files = [ name = "commonmark" version = "0.9.1" description = "Python parser for the CommonMark Markdown spec" -category = "dev" optional = false python-versions = "*" files = [ @@ -354,7 +275,6 @@ test = ["flake8 (==3.7.8)", "hypothesis (==3.55.3)"] name = "ConfigArgParse" version = "1.5.3" description = "A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -370,7 +290,6 @@ yaml = ["PyYAML"] name = "constantly" version = "15.1.0" description = "Symbolic constants in Python" -category = "dev" optional = false python-versions = "*" files = [ @@ -382,7 +301,6 @@ files = [ name = "cryptography" version = "38.0.1" description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -429,7 +347,6 @@ test = ["hypothesis (>=1.11.4,!=3.79.2)", "iso8601", "pretend", "pytest (>=6.2.0 name = "Deprecated" version = "1.2.13" description = "Python @deprecated decorator to deprecate old python classes, functions or methods." -category = "main" optional = true python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -447,7 +364,6 @@ dev = ["PyTest", "PyTest (<5)", "PyTest-Cov", "PyTest-Cov (<2.6)", "bump2version name = "docutils" version = "0.19" description = "Docutils -- Python Documentation Utilities" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -459,7 +375,6 @@ files = [ name = "exceptiongroup" version = "1.1.3" description = "Backport of PEP 654 (exception groups)" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -474,7 +389,6 @@ test = ["pytest (>=6)"] name = "filelock" version = "3.8.0" description = "A platform independent file lock." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -490,7 +404,6 @@ testing = ["covdefaults (>=2.2)", "coverage (>=6.4.2)", "pytest (>=7.1.2)", "pyt name = "grpcio" version = "1.59.2" description = "HTTP/2-based RPC framework" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -557,7 +470,6 @@ protobuf = ["grpcio-tools (>=1.59.2)"] name = "grpcio-tools" version = "1.59.2" description = "Protobuf code generator for gRPC" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -626,7 +538,6 @@ setuptools = "*" name = "hyperlink" version = "21.0.0" description = "A featureful, immutable, and correct URL for Python." -category = "dev" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -641,7 +552,6 @@ idna = ">=2.5" name = "idna" version = "3.4" description = "Internationalized Domain Names in Applications (IDNA)" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -653,7 +563,6 @@ files = [ name = "importlib-metadata" version = "4.12.0" description = "Read metadata from Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -673,7 +582,6 @@ testing = ["flufl.flake8", "importlib-resources (>=1.3)", "packaging", "pyfakefs name = "importlib-resources" version = "5.9.0" description = "Read resources from Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -692,7 +600,6 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", name = "incremental" version = "21.3.0" description = "A small library that versions your Python projects." -category = "dev" optional = false python-versions = "*" files = [ @@ -707,7 +614,6 @@ scripts = ["click (>=6.0)", "twisted (>=16.4.0)"] name = "iniconfig" version = "1.1.1" description = "iniconfig: brain-dead simple config-ini parsing" -category = "dev" optional = false python-versions = "*" files = [ @@ -715,29 +621,10 @@ files = [ {file = "iniconfig-1.1.1.tar.gz", hash = "sha256:bc3af051d7d14b2ee5ef9969666def0cd1a000e121eaea580d4a313df4b37f32"}, ] -[[package]] -name = "isort" -version = "5.11.5" -description = "A Python utility / library to sort Python imports." -category = "dev" -optional = false -python-versions = ">=3.7.0" -files = [ - {file = "isort-5.11.5-py3-none-any.whl", hash = "sha256:ba1d72fb2595a01c7895a5128f9585a5cc4b6d395f1c8d514989b9a7eb2a8746"}, - {file = "isort-5.11.5.tar.gz", hash = "sha256:6be1f76a507cb2ecf16c7cf14a37e41609ca082330be4e3436a18ef74add55db"}, -] - -[package.extras] -colors = ["colorama (>=0.4.3,<0.5.0)"] -pipfile-deprecated-finder = ["pip-shims (>=0.5.2)", "pipreqs", "requirementslib"] -plugins = ["setuptools"] -requirements-deprecated-finder = ["pip-api", "pipreqs"] - [[package]] name = "jaraco.classes" version = "3.2.2" description = "Utility functions for Python class constructs" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -756,7 +643,6 @@ testing = ["pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", name = "jeepney" version = "0.8.0" description = "Low-level, pure Python DBus protocol wrapper." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -772,7 +658,6 @@ trio = ["async_generator", "trio"] name = "keyring" version = "23.9.1" description = "Store and access your passwords safely." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -795,7 +680,6 @@ testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-chec name = "lockfile" version = "0.12.2" description = "Platform-independent file locking module" -category = "dev" optional = false python-versions = "*" files = [ @@ -807,7 +691,6 @@ files = [ name = "lunr" version = "0.6.2" description = "A Python implementation of Lunr.js" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -822,7 +705,6 @@ languages = ["nltk"] name = "more-itertools" version = "8.14.0" description = "More routines for operating on iterables, beyond itertools" -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -834,7 +716,6 @@ files = [ name = "msgpack" version = "1.0.4" description = "MessagePack serializer" -category = "dev" optional = false python-versions = "*" files = [ @@ -896,7 +777,6 @@ files = [ name = "mypy" version = "1.4.1" description = "Optional static typing for Python" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -943,7 +823,6 @@ reports = ["lxml"] name = "mypy-extensions" version = "1.0.0" description = "Type system extensions for programs checked with the mypy type checker." -category = "dev" optional = false python-versions = ">=3.5" files = [ @@ -955,7 +834,6 @@ files = [ name = "mypy-protobuf" version = "3.3.0" description = "Generate mypy stub files from protobuf specs" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -971,7 +849,6 @@ types-protobuf = ">=3.19.12" name = "opentelemetry-api" version = "1.12.0" description = "OpenTelemetry Python API" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -987,7 +864,6 @@ setuptools = ">=16.0" name = "opentelemetry-sdk" version = "1.12.0" description = "OpenTelemetry Python SDK" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1005,7 +881,6 @@ typing-extensions = ">=3.7.4" name = "opentelemetry-semantic-conventions" version = "0.33b0" description = "OpenTelemetry Semantic Conventions" -category = "main" optional = true python-versions = ">=3.6" files = [ @@ -1017,7 +892,6 @@ files = [ name = "packaging" version = "23.0" description = "Core utilities for Python packages" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1025,23 +899,10 @@ files = [ {file = "packaging-23.0.tar.gz", hash = "sha256:b6ad297f8907de0fa2fe1ccbd26fdaf387f5f47c7275fedf8cce89f99446cf97"}, ] -[[package]] -name = "pathspec" -version = "0.10.1" -description = "Utility library for gitignore style pattern matching of file paths." -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "pathspec-0.10.1-py3-none-any.whl", hash = "sha256:46846318467efc4556ccfd27816e004270a9eeeeb4d062ce5e6fc7a87c573f93"}, - {file = "pathspec-0.10.1.tar.gz", hash = "sha256:7ace6161b621d31e7902eb6b5ae148d12cfd23f4a249b9ffb6b9fee12084323d"}, -] - [[package]] name = "pkginfo" version = "1.8.3" description = "Query metadatdata from sdists / bdists / installed packages." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*" files = [ @@ -1056,7 +917,6 @@ testing = ["coverage", "nose"] name = "platformdirs" version = "2.5.2" description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1072,7 +932,6 @@ test = ["appdirs (==1.4.4)", "pytest (>=6)", "pytest-cov (>=2.7)", "pytest-mock name = "pluggy" version = "1.0.0" description = "plugin and hook calling mechanisms for python" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1088,7 +947,6 @@ testing = ["pytest", "pytest-benchmark"] name = "protobuf" version = "4.21.12" description = "" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1112,7 +970,6 @@ files = [ name = "psutil" version = "5.9.3" description = "Cross-platform lib for process and system monitoring in Python." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1161,7 +1018,6 @@ test = ["enum34", "ipaddress", "mock", "pywin32", "wmi"] name = "pycparser" version = "2.21" description = "C parser in Python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ @@ -1173,7 +1029,6 @@ files = [ name = "pydantic" version = "1.10.2" description = "Data validation and settings management using python type hints" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1226,7 +1081,6 @@ email = ["email-validator (>=1.0.3)"] name = "pydocstyle" version = "6.1.1" description = "Python docstring style checker" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1244,7 +1098,6 @@ toml = ["toml"] name = "pydoctor" version = "23.4.1" description = "API doc generator." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1275,7 +1128,6 @@ test = ["Sphinx (>=3.5)", "bs4", "coverage", "cython-test-exception-raiser (==1. name = "Pygments" version = "2.13.0" description = "Pygments is a syntax highlighting package written in Python." -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1290,7 +1142,6 @@ plugins = ["importlib-metadata"] name = "pytest" version = "7.4.3" description = "pytest: simple powerful testing with Python" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1313,7 +1164,6 @@ testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "no name = "pytest-asyncio" version = "0.21.1" description = "Pytest support for asyncio" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1332,7 +1182,6 @@ testing = ["coverage (>=6.2)", "flaky (>=3.5.0)", "hypothesis (>=5.7.1)", "mypy name = "pytest-timeout" version = "2.2.0" description = "pytest plugin to abort hanging tests" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1347,7 +1196,6 @@ pytest = ">=5.0.0" name = "python-dateutil" version = "2.8.2" description = "Extensions to the standard Python datetime module" -category = "main" optional = false python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" files = [ @@ -1362,7 +1210,6 @@ six = ">=1.5" name = "pywin32-ctypes" version = "0.2.0" description = "" -category = "dev" optional = false python-versions = "*" files = [ @@ -1374,7 +1221,6 @@ files = [ name = "readme-renderer" version = "37.1" description = "readme_renderer is a library for rendering \"readme\" descriptions for Warehouse" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1394,7 +1240,6 @@ md = ["cmarkgfm (>=0.8.0)"] name = "requests" version = "2.28.1" description = "Python HTTP for Humans." -category = "dev" optional = false python-versions = ">=3.7, <4" files = [ @@ -1416,7 +1261,6 @@ use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] name = "requests-toolbelt" version = "0.9.1" description = "A utility belt for advanced users of python-requests" -category = "dev" optional = false python-versions = "*" files = [ @@ -1431,7 +1275,6 @@ requests = ">=2.0.1,<3.0.0" name = "rfc3986" version = "2.0.0" description = "Validating URI References per RFC 3986" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1446,7 +1289,6 @@ idna2008 = ["idna"] name = "rich" version = "12.5.1" description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" -category = "dev" optional = false python-versions = ">=3.6.3,<4.0.0" files = [ @@ -1462,11 +1304,37 @@ typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.9 [package.extras] jupyter = ["ipywidgets (>=7.5.1,<8.0.0)"] +[[package]] +name = "ruff" +version = "0.5.0" +description = "An extremely fast Python linter and code formatter, written in Rust." +optional = false +python-versions = ">=3.7" +files = [ + {file = "ruff-0.5.0-py3-none-linux_armv6l.whl", hash = "sha256:ee770ea8ab38918f34e7560a597cc0a8c9a193aaa01bfbd879ef43cb06bd9c4c"}, + {file = "ruff-0.5.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:38f3b8327b3cb43474559d435f5fa65dacf723351c159ed0dc567f7ab735d1b6"}, + {file = "ruff-0.5.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7594f8df5404a5c5c8f64b8311169879f6cf42142da644c7e0ba3c3f14130370"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:adc7012d6ec85032bc4e9065110df205752d64010bed5f958d25dbee9ce35de3"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d505fb93b0fabef974b168d9b27c3960714d2ecda24b6ffa6a87ac432905ea38"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9dc5cfd3558f14513ed0d5b70ce531e28ea81a8a3b1b07f0f48421a3d9e7d80a"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:db3ca35265de239a1176d56a464b51557fce41095c37d6c406e658cf80bbb362"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b1a321c4f68809fddd9b282fab6a8d8db796b270fff44722589a8b946925a2a8"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c4dfcd8d34b143916994b3876b63d53f56724c03f8c1a33a253b7b1e6bf2a7d"}, + {file = "ruff-0.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81e5facfc9f4a674c6a78c64d38becfbd5e4f739c31fcd9ce44c849f1fad9e4c"}, + {file = "ruff-0.5.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e589e27971c2a3efff3fadafb16e5aef7ff93250f0134ec4b52052b673cf988d"}, + {file = "ruff-0.5.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2ffbc3715a52b037bcb0f6ff524a9367f642cdc5817944f6af5479bbb2eb50e"}, + {file = "ruff-0.5.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:cd096e23c6a4f9c819525a437fa0a99d1c67a1b6bb30948d46f33afbc53596cf"}, + {file = "ruff-0.5.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:46e193b36f2255729ad34a49c9a997d506e58f08555366b2108783b3064a0e1e"}, + {file = "ruff-0.5.0-py3-none-win32.whl", hash = "sha256:49141d267100f5ceff541b4e06552e98527870eafa1acc9dec9139c9ec5af64c"}, + {file = "ruff-0.5.0-py3-none-win_amd64.whl", hash = "sha256:e9118f60091047444c1b90952736ee7b1792910cab56e9b9a9ac20af94cd0440"}, + {file = "ruff-0.5.0-py3-none-win_arm64.whl", hash = "sha256:ed5c4df5c1fb4518abcb57725b576659542bdbe93366f4f329e8f398c4b71178"}, + {file = "ruff-0.5.0.tar.gz", hash = "sha256:eb641b5873492cf9bd45bc9c5ae5320648218e04386a5f0c264ad6ccce8226a1"}, +] + [[package]] name = "SecretStorage" version = "3.3.3" description = "Python bindings to FreeDesktop.org Secret Service API" -category = "dev" optional = false python-versions = ">=3.6" files = [ @@ -1482,7 +1350,6 @@ jeepney = ">=0.6" name = "semantic-version" version = "2.10.0" description = "A library implementing the 'SemVer' scheme." -category = "dev" optional = false python-versions = ">=2.7" files = [ @@ -1498,7 +1365,6 @@ doc = ["Sphinx", "sphinx-rtd-theme"] name = "setuptools" version = "68.2.2" description = "Easily download, build, install, upgrade, and uninstall Python packages" -category = "main" optional = false python-versions = ">=3.8" files = [ @@ -1515,7 +1381,6 @@ testing-integration = ["build[virtualenv] (>=1.0.3)", "filelock (>=3.4.0)", "jar name = "setuptools-rust" version = "1.5.2" description = "Setuptools Rust extension plugin" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1532,7 +1397,6 @@ typing-extensions = ">=3.7.4.3" name = "six" version = "1.16.0" description = "Python 2 and 3 compatibility utilities" -category = "main" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -1544,7 +1408,6 @@ files = [ name = "snowballstemmer" version = "2.2.0" description = "This package provides 29 stemmers for 28 languages generated from Snowball algorithms." -category = "dev" optional = false python-versions = "*" files = [ @@ -1556,7 +1419,6 @@ files = [ name = "toml" version = "0.10.2" description = "Python Library for Tom's Obvious, Minimal Language" -category = "dev" optional = false python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" files = [ @@ -1568,7 +1430,6 @@ files = [ name = "tomli" version = "2.0.1" description = "A lil' TOML parser" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1580,7 +1441,6 @@ files = [ name = "twine" version = "4.0.1" description = "Collection of utilities for publishing packages on PyPI" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1603,7 +1463,6 @@ urllib3 = ">=1.26.0" name = "Twisted" version = "22.4.0" description = "An asynchronous networking framework written in Python" -category = "dev" optional = false python-versions = ">=3.6.7" files = [ @@ -1641,7 +1500,6 @@ windows-platform = ["PyHamcrest (>=1.9.0)", "appdirs (>=1.4.0)", "bcrypt (>=3.0. name = "twisted-iocpsupport" version = "1.0.2" description = "An extension for use in the twisted I/O Completion Ports reactor." -category = "dev" optional = false python-versions = "*" files = [ @@ -1663,7 +1521,6 @@ files = [ name = "types-protobuf" version = "4.21.0.6" description = "Typing stubs for protobuf" -category = "main" optional = false python-versions = "*" files = [ @@ -1675,7 +1532,6 @@ files = [ name = "typing-extensions" version = "4.3.0" description = "Backported and Experimental Type Hints for Python 3.7+" -category = "main" optional = false python-versions = ">=3.7" files = [ @@ -1687,7 +1543,6 @@ files = [ name = "urllib3" version = "1.26.12" description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, <4" files = [ @@ -1704,7 +1559,6 @@ socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] name = "webencodings" version = "0.5.1" description = "Character encoding aliases for legacy web content" -category = "dev" optional = false python-versions = "*" files = [ @@ -1716,7 +1570,6 @@ files = [ name = "wheel" version = "0.42.0" description = "A built-package format for Python" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1731,7 +1584,6 @@ test = ["pytest (>=6.0.0)", "setuptools (>=65)"] name = "wrapt" version = "1.14.1" description = "Module for decorators, wrappers and monkey patching." -category = "main" optional = true python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ @@ -1815,7 +1667,6 @@ files = [ name = "zipp" version = "3.8.1" description = "Backport of pathlib-compatible object wrapper for zip files" -category = "dev" optional = false python-versions = ">=3.7" files = [ @@ -1831,7 +1682,6 @@ testing = ["func-timeout", "jaraco.itertools", "pytest (>=6)", "pytest-black (>= name = "zope.interface" version = "5.4.0" description = "Interfaces for Python" -category = "dev" optional = false python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" files = [ @@ -1903,4 +1753,4 @@ opentelemetry = ["opentelemetry-api", "opentelemetry-sdk"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "58ce3f2d28683ca8dad34116a76a1f7582fcd6c877188f649b858da8510e8cc5" +content-hash = "08a8d78df69979e1f2c667a18cd3f26ef3d898c00e78837383f5fc36f5ef7bcd" diff --git a/pyproject.toml b/pyproject.toml index e80f4fcf..9db3c847 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ script = "build.py" # a setup file, but we are using setuptools Rust manually in our build.py which # needs a setup file. # TODO(cretz): Find a way to not require a setup file since that is going away -# at some point in Poetry. Revisit Maturin or fine some other approach. +# at some point in Poetry. Revisit Maturin or find some other approach. generate-setup-file = true [tool.poetry.urls] @@ -41,10 +41,8 @@ types-protobuf = ">=3.20" typing-extensions = "^4.2.0" [tool.poetry.dev-dependencies] -black = "^23.1.0" cibuildwheel = "^2.17.0" grpcio-tools = "^1.48.0" -isort = "^5.11.5" mypy = "^1.0.0" mypy-protobuf = "^3.3.0" psutil = "^5.9.3" @@ -54,6 +52,7 @@ pydoctor = "^23.4.1" pytest = "^7.4" pytest-asyncio = "^0.21" pytest-timeout = "^2.2" +ruff = "^0.5.0" setuptools = ">=65.0.0" setuptools-rust = ">=1.3.0" toml = "^0.10.2" @@ -64,16 +63,19 @@ wheel = "^0.42.0" opentelemetry = ["opentelemetry-api", "opentelemetry-sdk"] grpc = ["grpcio"] +[tool.poetry.group.dev.dependencies] +ruff = "^0.5.0" + [tool.poe.tasks] build-develop = "python scripts/setup_bridge.py develop" build-develop-with-release = { cmd = "python scripts/setup_bridge.py develop", env = { TEMPORAL_BUILD_RELEASE = "1" }} fix-wheel = "python scripts/fix_wheel.py" -format = [{cmd = "black ."}, {cmd = "isort ."}] +format = [{cmd = "ruff check --select I --fix"}, {cmd = "ruff format"}, ] gen-docs = "python scripts/gen_docs.py" gen-protos = "python scripts/gen_protos.py" lint = [ - {cmd = "black --check ."}, - {cmd = "isort --check-only ."}, + {cmd = "ruff check --select I"}, + {cmd = "ruff format --check"}, {ref = "lint-types"}, {ref = "lint-docs"}, ] @@ -125,11 +127,6 @@ build-verbosity = "1" before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && yum install -y openssl-devel" environment = { PATH = "$PATH:$HOME/.cargo/bin", CARGO_NET_GIT_FETCH_WITH_CLI = "true" } -[tool.isort] -profile = "black" -skip_gitignore = true -extend_skip = ["./temporalio/bridge/sdk-core", "./temporalio/bridge/target"] - [tool.mypy] ignore_missing_imports = true exclude = [ @@ -177,6 +174,9 @@ privacy = [ project-name = "Temporal Python" sidebar-expand-depth = 2 +[tool.ruff] +target-version = "py38" + [build-system] build-backend = "poetry.core.masonry.api" requires = ["poetry-core>=1.0.0", "setuptools", "wheel", "setuptools-rust", "protoc-wheel-0"] diff --git a/temporalio/activity.py b/temporalio/activity.py index df6db969..4de788bc 100644 --- a/temporalio/activity.py +++ b/temporalio/activity.py @@ -41,22 +41,19 @@ @overload -def defn(fn: CallableType) -> CallableType: - ... +def defn(fn: CallableType) -> CallableType: ... @overload def defn( *, name: Optional[str] = None, no_thread_cancel_exception: bool = False -) -> Callable[[CallableType], CallableType]: - ... +) -> Callable[[CallableType], CallableType]: ... @overload def defn( *, no_thread_cancel_exception: bool = False, dynamic: bool = False -) -> Callable[[CallableType], CallableType]: - ... +) -> Callable[[CallableType], CallableType]: ... def defn( @@ -364,7 +361,7 @@ async def wait_for_worker_shutdown() -> None: def wait_for_worker_shutdown_sync( - timeout: Optional[Union[timedelta, float]] = None + timeout: Optional[Union[timedelta, float]] = None, ) -> None: """Synchronously block while waiting for shutdown to be called on the worker. @@ -539,7 +536,8 @@ def _apply_to_callable( fn=fn, # iscoroutinefunction does not return true for async __call__ # TODO(cretz): Why can't MyPy handle this? - is_async=inspect.iscoroutinefunction(fn) or inspect.iscoroutinefunction(fn.__call__), # type: ignore + is_async=inspect.iscoroutinefunction(fn) + or inspect.iscoroutinefunction(fn.__call__), # type: ignore no_thread_cancel_exception=no_thread_cancel_exception, ), ) diff --git a/temporalio/api/batch/v1/message_pb2.py b/temporalio/api/batch/v1/message_pb2.py index bca41b1c..c0115b6f 100644 --- a/temporalio/api/batch/v1/message_pb2.py +++ b/temporalio/api/batch/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/batch/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -45,7 +46,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONINFO, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationInfo) }, ) @@ -56,7 +57,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONTERMINATION, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationTermination) }, ) @@ -67,7 +68,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONSIGNAL, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationSignal) }, ) @@ -78,7 +79,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONCANCELLATION, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationCancellation) }, ) @@ -89,7 +90,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONDELETION, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationDeletion) }, ) @@ -100,7 +101,7 @@ (_message.Message,), { "DESCRIPTOR": _BATCHOPERATIONRESET, - "__module__": "temporal.api.batch.v1.message_pb2" + "__module__": "temporal.api.batch.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.batch.v1.BatchOperationReset) }, ) diff --git a/temporalio/api/batch/v1/message_pb2.pyi b/temporalio/api/batch/v1/message_pb2.pyi index 0269c5b8..e4128640 100644 --- a/temporalio/api/batch/v1/message_pb2.pyi +++ b/temporalio/api/batch/v1/message_pb2.pyi @@ -23,11 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.batch_operation_pb2 import temporalio.api.enums.v1.reset_pb2 diff --git a/temporalio/api/cluster/v1/message_pb2.py b/temporalio/api/cluster/v1/message_pb2.py index 02adf356..7c056c78 100644 --- a/temporalio/api/cluster/v1/message_pb2.py +++ b/temporalio/api/cluster/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/cluster/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database diff --git a/temporalio/api/cluster/v1/message_pb2.pyi b/temporalio/api/cluster/v1/message_pb2.pyi index e4911ddc..d346a95e 100644 --- a/temporalio/api/cluster/v1/message_pb2.pyi +++ b/temporalio/api/cluster/v1/message_pb2.pyi @@ -23,13 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.enums.v1.cluster_pb2 import temporalio.api.enums.v1.common_pb2 import temporalio.api.version.v1.message_pb2 diff --git a/temporalio/api/cluster/v1/message_pb2_grpc.py b/temporalio/api/cluster/v1/message_pb2_grpc.py index 8a939394..bf947056 100644 --- a/temporalio/api/cluster/v1/message_pb2_grpc.py +++ b/temporalio/api/cluster/v1/message_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc diff --git a/temporalio/api/command/v1/message_pb2.py b/temporalio/api/command/v1/message_pb2.py index 4a29b3fe..307b29f0 100644 --- a/temporalio/api/command/v1/message_pb2.py +++ b/temporalio/api/command/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/command/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -104,7 +105,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEACTIVITYTASKCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleActivityTaskCommandAttributes) }, ) @@ -115,7 +116,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELACTIVITYTASKCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes) }, ) @@ -126,7 +127,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTTIMERCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.StartTimerCommandAttributes) }, ) @@ -137,7 +138,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes) }, ) @@ -148,7 +149,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.FailWorkflowExecutionCommandAttributes) }, ) @@ -159,7 +160,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELTIMERCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CancelTimerCommandAttributes) }, ) @@ -170,42 +171,48 @@ (_message.Message,), { "DESCRIPTOR": _CANCELWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes) }, ) _sym_db.RegisterMessage(CancelWorkflowExecutionCommandAttributes) -RequestCancelExternalWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes) - }, +RequestCancelExternalWorkflowExecutionCommandAttributes = ( + _reflection.GeneratedProtocolMessageType( + "RequestCancelExternalWorkflowExecutionCommandAttributes", + (_message.Message,), + { + "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes) + }, + ) ) _sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionCommandAttributes) -SignalExternalWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes) - }, +SignalExternalWorkflowExecutionCommandAttributes = ( + _reflection.GeneratedProtocolMessageType( + "SignalExternalWorkflowExecutionCommandAttributes", + (_message.Message,), + { + "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes) + }, + ) ) _sym_db.RegisterMessage(SignalExternalWorkflowExecutionCommandAttributes) -UpsertWorkflowSearchAttributesCommandAttributes = _reflection.GeneratedProtocolMessageType( - "UpsertWorkflowSearchAttributesCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes) - }, +UpsertWorkflowSearchAttributesCommandAttributes = ( + _reflection.GeneratedProtocolMessageType( + "UpsertWorkflowSearchAttributesCommandAttributes", + (_message.Message,), + { + "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes) + }, + ) ) _sym_db.RegisterMessage(UpsertWorkflowSearchAttributesCommandAttributes) @@ -214,7 +221,7 @@ (_message.Message,), { "DESCRIPTOR": _MODIFYWORKFLOWPROPERTIESCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes) }, ) @@ -229,26 +236,28 @@ (_message.Message,), { "DESCRIPTOR": _RECORDMARKERCOMMANDATTRIBUTES_DETAILSENTRY, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RecordMarkerCommandAttributes.DetailsEntry) }, ), "DESCRIPTOR": _RECORDMARKERCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RecordMarkerCommandAttributes) }, ) _sym_db.RegisterMessage(RecordMarkerCommandAttributes) _sym_db.RegisterMessage(RecordMarkerCommandAttributes.DetailsEntry) -ContinueAsNewWorkflowExecutionCommandAttributes = _reflection.GeneratedProtocolMessageType( - "ContinueAsNewWorkflowExecutionCommandAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes) - }, +ContinueAsNewWorkflowExecutionCommandAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ContinueAsNewWorkflowExecutionCommandAttributes", + (_message.Message,), + { + "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTIONCOMMANDATTRIBUTES, + "__module__": "temporal.api.command.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes) + }, + ) ) _sym_db.RegisterMessage(ContinueAsNewWorkflowExecutionCommandAttributes) @@ -257,7 +266,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes) }, ) @@ -268,7 +277,7 @@ (_message.Message,), { "DESCRIPTOR": _PROTOCOLMESSAGECOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ProtocolMessageCommandAttributes) }, ) @@ -283,12 +292,12 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES_NEXUSHEADERENTRY, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes.NexusHeaderEntry) }, ), "DESCRIPTOR": _SCHEDULENEXUSOPERATIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.ScheduleNexusOperationCommandAttributes) }, ) @@ -300,7 +309,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELNEXUSOPERATIONCOMMANDATTRIBUTES, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.RequestCancelNexusOperationCommandAttributes) }, ) @@ -311,7 +320,7 @@ (_message.Message,), { "DESCRIPTOR": _COMMAND, - "__module__": "temporal.api.command.v1.message_pb2" + "__module__": "temporal.api.command.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.command.v1.Command) }, ) diff --git a/temporalio/api/command/v1/message_pb2.pyi b/temporalio/api/command/v1/message_pb2.pyi index 91610733..781a8ca0 100644 --- a/temporalio/api/command/v1/message_pb2.pyi +++ b/temporalio/api/command/v1/message_pb2.pyi @@ -23,13 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.command_type_pb2 import temporalio.api.enums.v1.workflow_pb2 @@ -767,10 +770,14 @@ class StartChildWorkflowExecutionCommandAttributes(google.protobuf.message.Messa @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - parent_close_policy: temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + parent_close_policy: ( + temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + ) """Default: PARENT_CLOSE_POLICY_TERMINATE.""" control: builtins.str - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... @@ -1028,7 +1035,9 @@ class Command(google.protobuf.message.Message): REQUEST_CANCEL_ACTIVITY_TASK_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int CANCEL_TIMER_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int CANCEL_WORKFLOW_EXECUTION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int - REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int + REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_COMMAND_ATTRIBUTES_FIELD_NUMBER: ( + builtins.int + ) RECORD_MARKER_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int CONTINUE_AS_NEW_WORKFLOW_EXECUTION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int START_CHILD_WORKFLOW_EXECUTION_COMMAND_ATTRIBUTES_FIELD_NUMBER: builtins.int diff --git a/temporalio/api/common/v1/grpc_status_pb2.py b/temporalio/api/common/v1/grpc_status_pb2.py index a50fc212..fd75d79b 100644 --- a/temporalio/api/common/v1/grpc_status_pb2.py +++ b/temporalio/api/common/v1/grpc_status_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/common/v1/grpc_status.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -26,7 +27,7 @@ (_message.Message,), { "DESCRIPTOR": _GRPCSTATUS, - "__module__": "temporal.api.common.v1.grpc_status_pb2" + "__module__": "temporal.api.common.v1.grpc_status_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.GrpcStatus) }, ) diff --git a/temporalio/api/common/v1/grpc_status_pb2.pyi b/temporalio/api/common/v1/grpc_status_pb2.pyi index 8780c750..749a003a 100644 --- a/temporalio/api/common/v1/grpc_status_pb2.pyi +++ b/temporalio/api/common/v1/grpc_status_pb2.pyi @@ -2,13 +2,15 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc +import sys + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/common/v1/message_pb2.py b/temporalio/api/common/v1/message_pb2.py index 606bafdf..19a35c04 100644 --- a/temporalio/api/common/v1/message_pb2.py +++ b/temporalio/api/common/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/common/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -58,7 +59,7 @@ (_message.Message,), { "DESCRIPTOR": _DATABLOB, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.DataBlob) }, ) @@ -69,7 +70,7 @@ (_message.Message,), { "DESCRIPTOR": _PAYLOADS, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payloads) }, ) @@ -84,12 +85,12 @@ (_message.Message,), { "DESCRIPTOR": _PAYLOAD_METADATAENTRY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payload.MetadataEntry) }, ), "DESCRIPTOR": _PAYLOAD, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Payload) }, ) @@ -105,12 +106,12 @@ (_message.Message,), { "DESCRIPTOR": _SEARCHATTRIBUTES_INDEXEDFIELDSENTRY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.SearchAttributes.IndexedFieldsEntry) }, ), "DESCRIPTOR": _SEARCHATTRIBUTES, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.SearchAttributes) }, ) @@ -126,12 +127,12 @@ (_message.Message,), { "DESCRIPTOR": _MEMO_FIELDSENTRY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Memo.FieldsEntry) }, ), "DESCRIPTOR": _MEMO, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Memo) }, ) @@ -147,12 +148,12 @@ (_message.Message,), { "DESCRIPTOR": _HEADER_FIELDSENTRY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Header.FieldsEntry) }, ), "DESCRIPTOR": _HEADER, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Header) }, ) @@ -164,7 +165,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTION, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkflowExecution) }, ) @@ -175,7 +176,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTYPE, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkflowType) }, ) @@ -186,7 +187,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTYPE, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.ActivityType) }, ) @@ -197,7 +198,7 @@ (_message.Message,), { "DESCRIPTOR": _RETRYPOLICY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.RetryPolicy) }, ) @@ -208,7 +209,7 @@ (_message.Message,), { "DESCRIPTOR": _METERINGMETADATA, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.MeteringMetadata) }, ) @@ -219,7 +220,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKERVERSIONSTAMP, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkerVersionStamp) }, ) @@ -230,7 +231,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKERVERSIONCAPABILITIES, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.WorkerVersionCapabilities) }, ) @@ -241,7 +242,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETOPTIONS, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.ResetOptions) }, ) @@ -260,17 +261,17 @@ (_message.Message,), { "DESCRIPTOR": _CALLBACK_NEXUS_HEADERENTRY, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus.HeaderEntry) }, ), "DESCRIPTOR": _CALLBACK_NEXUS, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback.Nexus) }, ), "DESCRIPTOR": _CALLBACK, - "__module__": "temporal.api.common.v1.message_pb2" + "__module__": "temporal.api.common.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.common.v1.Callback) }, ) diff --git a/temporalio/api/common/v1/message_pb2.pyi b/temporalio/api/common/v1/message_pb2.pyi index 30c8d8e6..0fee2fa1 100644 --- a/temporalio/api/common/v1/message_pb2.pyi +++ b/temporalio/api/common/v1/message_pb2.pyi @@ -23,14 +23,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.empty_pb2 import google.protobuf.internal.containers import google.protobuf.message -import sys + import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.reset_pb2 diff --git a/temporalio/api/enums/v1/batch_operation_pb2.py b/temporalio/api/enums/v1/batch_operation_pb2.py index 36b68273..d9165b8e 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.py +++ b/temporalio/api/enums/v1/batch_operation_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/batch_operation.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/batch_operation_pb2.pyi b/temporalio/api/enums/v1/batch_operation_pb2.pyi index f9bb878c..5178036d 100644 --- a/temporalio/api/enums/v1/batch_operation_pb2.pyi +++ b/temporalio/api/enums/v1/batch_operation_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/command_type_pb2.py b/temporalio/api/enums/v1/command_type_pb2.py index c86221b3..6d1c3b6e 100644 --- a/temporalio/api/enums/v1/command_type_pb2.py +++ b/temporalio/api/enums/v1/command_type_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/command_type.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/command_type_pb2.pyi b/temporalio/api/enums/v1/command_type_pb2.pyi index ec985cd2..fc952927 100644 --- a/temporalio/api/enums/v1/command_type_pb2.pyi +++ b/temporalio/api/enums/v1/command_type_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/common_pb2.py b/temporalio/api/enums/v1/common_pb2.py index a2735f60..1917902d 100644 --- a/temporalio/api/enums/v1/common_pb2.py +++ b/temporalio/api/enums/v1/common_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/common.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/common_pb2.pyi b/temporalio/api/enums/v1/common_pb2.pyi index c8cea8d7..bd615e0b 100644 --- a/temporalio/api/enums/v1/common_pb2.pyi +++ b/temporalio/api/enums/v1/common_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -166,11 +168,15 @@ class _PendingNexusOperationStateEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: _PendingNexusOperationState.ValueType # 0 + PENDING_NEXUS_OPERATION_STATE_UNSPECIFIED: ( + _PendingNexusOperationState.ValueType + ) # 0 """Default value, unspecified state.""" PENDING_NEXUS_OPERATION_STATE_SCHEDULED: _PendingNexusOperationState.ValueType # 1 """Operation is in the queue waiting to be executed or is currently executing.""" - PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: _PendingNexusOperationState.ValueType # 2 + PENDING_NEXUS_OPERATION_STATE_BACKING_OFF: ( + _PendingNexusOperationState.ValueType + ) # 2 """Operation has failed with a retryable error and is backing off before the next attempt.""" PENDING_NEXUS_OPERATION_STATE_STARTED: _PendingNexusOperationState.ValueType # 3 """Operation was started and will complete asynchronously.""" @@ -201,17 +207,29 @@ class _NexusOperationCancellationStateEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: _NexusOperationCancellationState.ValueType # 0 + NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: ( + _NexusOperationCancellationState.ValueType + ) # 0 """Default value, unspecified state.""" - NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: _NexusOperationCancellationState.ValueType # 1 + NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: ( + _NexusOperationCancellationState.ValueType + ) # 1 """Cancellation request is in the queue waiting to be executed or is currently executing.""" - NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: _NexusOperationCancellationState.ValueType # 2 + NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: ( + _NexusOperationCancellationState.ValueType + ) # 2 """Cancellation request has failed with a retryable error and is backing off before the next attempt.""" - NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: _NexusOperationCancellationState.ValueType # 3 + NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: ( + _NexusOperationCancellationState.ValueType + ) # 3 """Cancellation request succeeded.""" - NEXUS_OPERATION_CANCELLATION_STATE_FAILED: _NexusOperationCancellationState.ValueType # 4 + NEXUS_OPERATION_CANCELLATION_STATE_FAILED: ( + _NexusOperationCancellationState.ValueType + ) # 4 """Cancellation request failed with a non-retryable error.""" - NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: _NexusOperationCancellationState.ValueType # 5 + NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: ( + _NexusOperationCancellationState.ValueType + ) # 5 """The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" class NexusOperationCancellationState( @@ -220,16 +238,28 @@ class NexusOperationCancellationState( ): """State of a Nexus operation cancellation.""" -NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: NexusOperationCancellationState.ValueType # 0 +NEXUS_OPERATION_CANCELLATION_STATE_UNSPECIFIED: ( + NexusOperationCancellationState.ValueType +) # 0 """Default value, unspecified state.""" -NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: NexusOperationCancellationState.ValueType # 1 +NEXUS_OPERATION_CANCELLATION_STATE_SCHEDULED: ( + NexusOperationCancellationState.ValueType +) # 1 """Cancellation request is in the queue waiting to be executed or is currently executing.""" -NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: NexusOperationCancellationState.ValueType # 2 +NEXUS_OPERATION_CANCELLATION_STATE_BACKING_OFF: ( + NexusOperationCancellationState.ValueType +) # 2 """Cancellation request has failed with a retryable error and is backing off before the next attempt.""" -NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: NexusOperationCancellationState.ValueType # 3 +NEXUS_OPERATION_CANCELLATION_STATE_SUCCEEDED: ( + NexusOperationCancellationState.ValueType +) # 3 """Cancellation request succeeded.""" -NEXUS_OPERATION_CANCELLATION_STATE_FAILED: NexusOperationCancellationState.ValueType # 4 +NEXUS_OPERATION_CANCELLATION_STATE_FAILED: ( + NexusOperationCancellationState.ValueType +) # 4 """Cancellation request failed with a non-retryable error.""" -NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: NexusOperationCancellationState.ValueType # 5 +NEXUS_OPERATION_CANCELLATION_STATE_TIMED_OUT: ( + NexusOperationCancellationState.ValueType +) # 5 """The associated operation timed out - exceeded the user supplied schedule-to-close timeout.""" global___NexusOperationCancellationState = NexusOperationCancellationState diff --git a/temporalio/api/enums/v1/event_type_pb2.py b/temporalio/api/enums/v1/event_type_pb2.py index cfc449a7..0b630cb0 100644 --- a/temporalio/api/enums/v1/event_type_pb2.py +++ b/temporalio/api/enums/v1/event_type_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/event_type.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/event_type_pb2.pyi b/temporalio/api/enums/v1/event_type_pb2.pyi index bafbdf8f..1aeb459f 100644 --- a/temporalio/api/enums/v1/event_type_pb2.pyi +++ b/temporalio/api/enums/v1/event_type_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -127,9 +129,13 @@ class _EventTypeEnumTypeWrapper( """A request has been made to cancel the Workflow execution""" EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: _EventType.ValueType # 21 """SDK client has confirmed the cancellation request and the Workflow execution has been cancelled""" - EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: _EventType.ValueType # 22 + EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: ( + _EventType.ValueType + ) # 22 """Workflow has requested that the Temporal Server try to cancel another Workflow""" - EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: _EventType.ValueType # 23 + EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: ( + _EventType.ValueType + ) # 23 """Temporal Server could not cancel the targeted Workflow This is usually because the target Workflow could not be found """ @@ -305,7 +311,9 @@ EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED: EventType.ValueType # 20 """A request has been made to cancel the Workflow execution""" EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED: EventType.ValueType # 21 """SDK client has confirmed the cancellation request and the Workflow execution has been cancelled""" -EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: EventType.ValueType # 22 +EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED: ( + EventType.ValueType +) # 22 """Workflow has requested that the Temporal Server try to cancel another Workflow""" EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED: EventType.ValueType # 23 """Temporal Server could not cancel the targeted Workflow diff --git a/temporalio/api/enums/v1/failed_cause_pb2.py b/temporalio/api/enums/v1/failed_cause_pb2.py index edf37658..91be0c43 100644 --- a/temporalio/api/enums/v1/failed_cause_pb2.py +++ b/temporalio/api/enums/v1/failed_cause_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/failed_cause.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -84,14 +85,10 @@ START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = 1 START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2 CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0 -CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = ( - 1 -) +CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1 CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2 SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0 -SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = ( - 1 -) +SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1 SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2 SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED = 3 RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED = 0 diff --git a/temporalio/api/enums/v1/failed_cause_pb2.pyi b/temporalio/api/enums/v1/failed_cause_pb2.pyi index 72ecd5a1..6488091f 100644 --- a/temporalio/api/enums/v1/failed_cause_pb2.pyi +++ b/temporalio/api/enums/v1/failed_cause_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -48,42 +50,88 @@ class _WorkflowTaskFailedCauseEnumTypeWrapper( ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED: _WorkflowTaskFailedCause.ValueType # 0 - WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND: _WorkflowTaskFailedCause.ValueType # 1 + WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND: ( + _WorkflowTaskFailedCause.ValueType + ) # 1 """Between starting and completing the workflow task (with a workflow completion command), some new command (like a signal) was processed into workflow history. The outstanding task will be failed with this reason, and a worker must pick up a new task. """ - WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 2 - WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 3 - WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 4 - WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 5 - WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 6 - WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 7 - WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 8 - WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 9 + WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 2 + WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 3 + WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 4 + WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 5 + WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 6 + WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 7 + WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 8 + WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 9 WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 10 - WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 11 - WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID: _WorkflowTaskFailedCause.ValueType # 12 - WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE: _WorkflowTaskFailedCause.ValueType # 13 + WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 11 + WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID: ( + _WorkflowTaskFailedCause.ValueType + ) # 12 + WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE: ( + _WorkflowTaskFailedCause.ValueType + ) # 13 """The worker wishes to fail the task and have the next one be generated on a normal, not sticky queue. Generally workers should prefer to use the explicit `ResetStickyTaskQueue` RPC call. """ - WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE: _WorkflowTaskFailedCause.ValueType # 14 - WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 15 - WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 16 - WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND: _WorkflowTaskFailedCause.ValueType # 17 - WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND: _WorkflowTaskFailedCause.ValueType # 18 - WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE: _WorkflowTaskFailedCause.ValueType # 19 + WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE: ( + _WorkflowTaskFailedCause.ValueType + ) # 14 + WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 15 + WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 16 + WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND: ( + _WorkflowTaskFailedCause.ValueType + ) # 17 + WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND: ( + _WorkflowTaskFailedCause.ValueType + ) # 18 + WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE: ( + _WorkflowTaskFailedCause.ValueType + ) # 19 WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW: _WorkflowTaskFailedCause.ValueType # 20 WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY: _WorkflowTaskFailedCause.ValueType # 21 - WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID: _WorkflowTaskFailedCause.ValueType # 22 - WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 23 - WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR: _WorkflowTaskFailedCause.ValueType # 24 + WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID: ( + _WorkflowTaskFailedCause.ValueType + ) # 22 + WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 23 + WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR: ( + _WorkflowTaskFailedCause.ValueType + ) # 24 """The worker encountered a mismatch while replaying history between what was expected, and what the workflow code actually did. """ - WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 25 - WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED: _WorkflowTaskFailedCause.ValueType # 26 + WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 25 + WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED: ( + _WorkflowTaskFailedCause.ValueType + ) # 26 """We send the below error codes to users when their requests would violate a size constraint of their workflow. We do this to ensure that the state of their workflow does not become too large because that can cause severe performance degradation. You can modify the thresholds for @@ -92,31 +140,49 @@ class _WorkflowTaskFailedCauseEnumTypeWrapper( Spawning a new child workflow would cause this workflow to exceed its limit of pending child workflows. """ - WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED: _WorkflowTaskFailedCause.ValueType # 27 + WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED: ( + _WorkflowTaskFailedCause.ValueType + ) # 27 """Starting a new activity would cause this workflow to exceed its limit of pending activities that we track. """ - WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED: _WorkflowTaskFailedCause.ValueType # 28 + WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED: ( + _WorkflowTaskFailedCause.ValueType + ) # 28 """A workflow has a buffer of signals that have not yet reached their destination. We return this error when sending a new signal would exceed the capacity of this buffer. """ - WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED: _WorkflowTaskFailedCause.ValueType # 29 + WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED: ( + _WorkflowTaskFailedCause.ValueType + ) # 29 """Similarly, we have a buffer of pending requests to cancel other workflows. We return this error when our capacity for pending cancel requests is already reached. """ - WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE: _WorkflowTaskFailedCause.ValueType # 30 + WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE: ( + _WorkflowTaskFailedCause.ValueType + ) # 30 """Workflow execution update message (update.Acceptance, update.Rejection, or update.Response) has wrong format, or missing required fields. """ - WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE: _WorkflowTaskFailedCause.ValueType # 31 + WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE: ( + _WorkflowTaskFailedCause.ValueType + ) # 31 """Similar to WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND, but for updates.""" - WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 32 + WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 32 """A workflow task completed with an invalid ScheduleNexusOperation command.""" - WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED: _WorkflowTaskFailedCause.ValueType # 33 + WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED: ( + _WorkflowTaskFailedCause.ValueType + ) # 33 """A workflow task completed requesting to schedule a Nexus Operation exceeding the server configured limit.""" - WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES: _WorkflowTaskFailedCause.ValueType # 34 + WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES: ( + _WorkflowTaskFailedCause.ValueType + ) # 34 """A workflow task completed with an invalid RequestCancelNexusOperation command.""" - WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED: _WorkflowTaskFailedCause.ValueType # 35 + WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED: ( + _WorkflowTaskFailedCause.ValueType + ) # 35 """A workflow task completed requesting a feature that's disabled on the server (either system wide or - typically - for the workflow's namespace). Check the workflow task failure message for more information. @@ -135,37 +201,81 @@ WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND: WorkflowTaskFailedCause.ValueType new command (like a signal) was processed into workflow history. The outstanding task will be failed with this reason, and a worker must pick up a new task. """ -WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 2 -WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 3 -WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 4 -WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 5 -WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 6 -WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 7 -WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 8 -WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 9 -WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 10 -WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 11 -WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID: WorkflowTaskFailedCause.ValueType # 12 -WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE: WorkflowTaskFailedCause.ValueType # 13 +WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 2 +WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 3 +WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 4 +WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 5 +WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 6 +WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 7 +WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 8 +WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 9 +WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 10 +WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 11 +WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID: ( + WorkflowTaskFailedCause.ValueType +) # 12 +WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE: ( + WorkflowTaskFailedCause.ValueType +) # 13 """The worker wishes to fail the task and have the next one be generated on a normal, not sticky queue. Generally workers should prefer to use the explicit `ResetStickyTaskQueue` RPC call. """ -WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE: WorkflowTaskFailedCause.ValueType # 14 -WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 15 -WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 16 +WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE: ( + WorkflowTaskFailedCause.ValueType +) # 14 +WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 15 +WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 16 WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND: WorkflowTaskFailedCause.ValueType # 17 -WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND: WorkflowTaskFailedCause.ValueType # 18 -WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE: WorkflowTaskFailedCause.ValueType # 19 +WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND: ( + WorkflowTaskFailedCause.ValueType +) # 18 +WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE: ( + WorkflowTaskFailedCause.ValueType +) # 19 WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW: WorkflowTaskFailedCause.ValueType # 20 WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY: WorkflowTaskFailedCause.ValueType # 21 -WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID: WorkflowTaskFailedCause.ValueType # 22 -WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 23 -WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR: WorkflowTaskFailedCause.ValueType # 24 +WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID: ( + WorkflowTaskFailedCause.ValueType +) # 22 +WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 23 +WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR: ( + WorkflowTaskFailedCause.ValueType +) # 24 """The worker encountered a mismatch while replaying history between what was expected, and what the workflow code actually did. """ -WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 25 -WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED: WorkflowTaskFailedCause.ValueType # 26 +WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 25 +WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED: ( + WorkflowTaskFailedCause.ValueType +) # 26 """We send the below error codes to users when their requests would violate a size constraint of their workflow. We do this to ensure that the state of their workflow does not become too large because that can cause severe performance degradation. You can modify the thresholds for @@ -174,29 +284,43 @@ each of these errors within your dynamic config. Spawning a new child workflow would cause this workflow to exceed its limit of pending child workflows. """ -WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED: WorkflowTaskFailedCause.ValueType # 27 +WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED: ( + WorkflowTaskFailedCause.ValueType +) # 27 """Starting a new activity would cause this workflow to exceed its limit of pending activities that we track. """ -WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED: WorkflowTaskFailedCause.ValueType # 28 +WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED: ( + WorkflowTaskFailedCause.ValueType +) # 28 """A workflow has a buffer of signals that have not yet reached their destination. We return this error when sending a new signal would exceed the capacity of this buffer. """ -WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED: WorkflowTaskFailedCause.ValueType # 29 +WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED: ( + WorkflowTaskFailedCause.ValueType +) # 29 """Similarly, we have a buffer of pending requests to cancel other workflows. We return this error when our capacity for pending cancel requests is already reached. """ -WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE: WorkflowTaskFailedCause.ValueType # 30 +WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE: ( + WorkflowTaskFailedCause.ValueType +) # 30 """Workflow execution update message (update.Acceptance, update.Rejection, or update.Response) has wrong format, or missing required fields. """ WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE: WorkflowTaskFailedCause.ValueType # 31 """Similar to WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND, but for updates.""" -WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 32 +WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_NEXUS_OPERATION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 32 """A workflow task completed with an invalid ScheduleNexusOperation command.""" -WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED: WorkflowTaskFailedCause.ValueType # 33 +WORKFLOW_TASK_FAILED_CAUSE_PENDING_NEXUS_OPERATIONS_LIMIT_EXCEEDED: ( + WorkflowTaskFailedCause.ValueType +) # 33 """A workflow task completed requesting to schedule a Nexus Operation exceeding the server configured limit.""" -WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES: WorkflowTaskFailedCause.ValueType # 34 +WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_NEXUS_OPERATION_ATTRIBUTES: ( + WorkflowTaskFailedCause.ValueType +) # 34 """A workflow task completed with an invalid RequestCancelNexusOperation command.""" WORKFLOW_TASK_FAILED_CAUSE_FEATURE_DISABLED: WorkflowTaskFailedCause.ValueType # 35 """A workflow task completed requesting a feature that's disabled on the server (either system wide or - typically - @@ -216,18 +340,30 @@ class _StartChildWorkflowExecutionFailedCauseEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: _StartChildWorkflowExecutionFailedCause.ValueType # 0 - START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: _StartChildWorkflowExecutionFailedCause.ValueType # 1 - START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: _StartChildWorkflowExecutionFailedCause.ValueType # 2 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 0 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 1 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 2 class StartChildWorkflowExecutionFailedCause( _StartChildWorkflowExecutionFailedCause, metaclass=_StartChildWorkflowExecutionFailedCauseEnumTypeWrapper, ): ... -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: StartChildWorkflowExecutionFailedCause.ValueType # 0 -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: StartChildWorkflowExecutionFailedCause.ValueType # 1 -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: StartChildWorkflowExecutionFailedCause.ValueType # 2 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 0 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 1 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 2 global___StartChildWorkflowExecutionFailedCause = StartChildWorkflowExecutionFailedCause class _CancelExternalWorkflowExecutionFailedCause: @@ -241,18 +377,28 @@ class _CancelExternalWorkflowExecutionFailedCauseEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: _CancelExternalWorkflowExecutionFailedCause.ValueType # 0 + CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + _CancelExternalWorkflowExecutionFailedCause.ValueType + ) # 0 CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: _CancelExternalWorkflowExecutionFailedCause.ValueType # 1 - CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: _CancelExternalWorkflowExecutionFailedCause.ValueType # 2 + CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + _CancelExternalWorkflowExecutionFailedCause.ValueType + ) # 2 class CancelExternalWorkflowExecutionFailedCause( _CancelExternalWorkflowExecutionFailedCause, metaclass=_CancelExternalWorkflowExecutionFailedCauseEnumTypeWrapper, ): ... -CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: CancelExternalWorkflowExecutionFailedCause.ValueType # 0 -CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: CancelExternalWorkflowExecutionFailedCause.ValueType # 1 -CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: CancelExternalWorkflowExecutionFailedCause.ValueType # 2 +CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + CancelExternalWorkflowExecutionFailedCause.ValueType +) # 0 +CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: ( + CancelExternalWorkflowExecutionFailedCause.ValueType +) # 1 +CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + CancelExternalWorkflowExecutionFailedCause.ValueType +) # 2 global___CancelExternalWorkflowExecutionFailedCause = ( CancelExternalWorkflowExecutionFailedCause ) @@ -268,10 +414,16 @@ class _SignalExternalWorkflowExecutionFailedCauseEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: _SignalExternalWorkflowExecutionFailedCause.ValueType # 0 + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + _SignalExternalWorkflowExecutionFailedCause.ValueType + ) # 0 SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: _SignalExternalWorkflowExecutionFailedCause.ValueType # 1 - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: _SignalExternalWorkflowExecutionFailedCause.ValueType # 2 - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED: _SignalExternalWorkflowExecutionFailedCause.ValueType # 3 + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + _SignalExternalWorkflowExecutionFailedCause.ValueType + ) # 2 + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED: ( + _SignalExternalWorkflowExecutionFailedCause.ValueType + ) # 3 """Signal count limit is per workflow and controlled by server dynamic config "history.maximumSignalsPerExecution" """ class SignalExternalWorkflowExecutionFailedCause( @@ -279,10 +431,18 @@ class SignalExternalWorkflowExecutionFailedCause( metaclass=_SignalExternalWorkflowExecutionFailedCauseEnumTypeWrapper, ): ... -SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: SignalExternalWorkflowExecutionFailedCause.ValueType # 0 -SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: SignalExternalWorkflowExecutionFailedCause.ValueType # 1 -SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: SignalExternalWorkflowExecutionFailedCause.ValueType # 2 -SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED: SignalExternalWorkflowExecutionFailedCause.ValueType # 3 +SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + SignalExternalWorkflowExecutionFailedCause.ValueType +) # 0 +SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND: ( + SignalExternalWorkflowExecutionFailedCause.ValueType +) # 1 +SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND: ( + SignalExternalWorkflowExecutionFailedCause.ValueType +) # 2 +SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED: ( + SignalExternalWorkflowExecutionFailedCause.ValueType +) # 3 """Signal count limit is per workflow and controlled by server dynamic config "history.maximumSignalsPerExecution" """ global___SignalExternalWorkflowExecutionFailedCause = ( SignalExternalWorkflowExecutionFailedCause @@ -312,7 +472,9 @@ class _ResourceExhaustedCauseEnumTypeWrapper( """Workflow is busy""" RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT: _ResourceExhaustedCause.ValueType # 6 """Caller exceeds action per second limit.""" - RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT: _ResourceExhaustedCause.ValueType # 7 + RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT: ( + _ResourceExhaustedCause.ValueType + ) # 7 """Persistence storage limit exceeded.""" class ResourceExhaustedCause( @@ -332,7 +494,9 @@ RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW: ResourceExhaustedCause.ValueType # 5 """Workflow is busy""" RESOURCE_EXHAUSTED_CAUSE_APS_LIMIT: ResourceExhaustedCause.ValueType # 6 """Caller exceeds action per second limit.""" -RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT: ResourceExhaustedCause.ValueType # 7 +RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_STORAGE_LIMIT: ( + ResourceExhaustedCause.ValueType +) # 7 """Persistence storage limit exceeded.""" global___ResourceExhaustedCause = ResourceExhaustedCause diff --git a/temporalio/api/enums/v1/namespace_pb2.py b/temporalio/api/enums/v1/namespace_pb2.py index 7d9f92a8..6c62f70f 100644 --- a/temporalio/api/enums/v1/namespace_pb2.py +++ b/temporalio/api/enums/v1/namespace_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/namespace.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/namespace_pb2.pyi b/temporalio/api/enums/v1/namespace_pb2.pyi index 0e122dab..b02cdb51 100644 --- a/temporalio/api/enums/v1/namespace_pb2.pyi +++ b/temporalio/api/enums/v1/namespace_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/query_pb2.py b/temporalio/api/enums/v1/query_pb2.py index e17bca74..945f9e00 100644 --- a/temporalio/api/enums/v1/query_pb2.py +++ b/temporalio/api/enums/v1/query_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/query.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/query_pb2.pyi b/temporalio/api/enums/v1/query_pb2.pyi index d03eb8af..bcb81e6a 100644 --- a/temporalio/api/enums/v1/query_pb2.pyi +++ b/temporalio/api/enums/v1/query_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/reset_pb2.py b/temporalio/api/enums/v1/reset_pb2.py index 32c1867e..97c328a8 100644 --- a/temporalio/api/enums/v1/reset_pb2.py +++ b/temporalio/api/enums/v1/reset_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/reset.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/reset_pb2.pyi b/temporalio/api/enums/v1/reset_pb2.pyi index 9fe1df0d..b898151b 100644 --- a/temporalio/api/enums/v1/reset_pb2.pyi +++ b/temporalio/api/enums/v1/reset_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/schedule_pb2.py b/temporalio/api/enums/v1/schedule_pb2.py index 257eab06..4d5d4697 100644 --- a/temporalio/api/enums/v1/schedule_pb2.py +++ b/temporalio/api/enums/v1/schedule_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/schedule.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/schedule_pb2.pyi b/temporalio/api/enums/v1/schedule_pb2.pyi index 26269e3c..ffb13630 100644 --- a/temporalio/api/enums/v1/schedule_pb2.pyi +++ b/temporalio/api/enums/v1/schedule_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: diff --git a/temporalio/api/enums/v1/task_queue_pb2.py b/temporalio/api/enums/v1/task_queue_pb2.py index 822b33d2..94362d89 100644 --- a/temporalio/api/enums/v1/task_queue_pb2.py +++ b/temporalio/api/enums/v1/task_queue_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/task_queue.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/task_queue_pb2.pyi b/temporalio/api/enums/v1/task_queue_pb2.pyi index 7d787b24..88c9d025 100644 --- a/temporalio/api/enums/v1/task_queue_pb2.pyi +++ b/temporalio/api/enums/v1/task_queue_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -187,7 +189,9 @@ class _BuildIdTaskReachabilityEnumTypeWrapper( """Build ID may be used by new workflows or activities (base on versioning rules), or there MAY be open workflows or backlogged activities assigned to it. """ - BUILD_ID_TASK_REACHABILITY_CLOSED_WORKFLOWS_ONLY: _BuildIdTaskReachability.ValueType # 2 + BUILD_ID_TASK_REACHABILITY_CLOSED_WORKFLOWS_ONLY: ( + _BuildIdTaskReachability.ValueType + ) # 2 """Build ID does not have open workflows and is not reachable by new workflows, but MAY have closed workflows within the namespace retention period. Not applicable to activity-only task queues. diff --git a/temporalio/api/enums/v1/update_pb2.py b/temporalio/api/enums/v1/update_pb2.py index 65089bb3..fb921555 100644 --- a/temporalio/api/enums/v1/update_pb2.py +++ b/temporalio/api/enums/v1/update_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/update.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/update_pb2.pyi b/temporalio/api/enums/v1/update_pb2.pyi index 9e83b179..f30354af 100644 --- a/temporalio/api/enums/v1/update_pb2.pyi +++ b/temporalio/api/enums/v1/update_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -47,20 +49,28 @@ class _UpdateWorkflowExecutionLifecycleStageEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: _UpdateWorkflowExecutionLifecycleStage.ValueType # 0 + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: ( + _UpdateWorkflowExecutionLifecycleStage.ValueType + ) # 0 """An unspecified vale for this enum.""" - UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: _UpdateWorkflowExecutionLifecycleStage.ValueType # 1 + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: ( + _UpdateWorkflowExecutionLifecycleStage.ValueType + ) # 1 """The gRPC call will not return until the update request has been admitted by the server - it may be the case that due to a considerations like load or resource limits that an update is made to wait before the server will indicate that it has been received and will be processed. This value does not wait for any sort of acknowledgement from a worker. """ - UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: _UpdateWorkflowExecutionLifecycleStage.ValueType # 2 + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: ( + _UpdateWorkflowExecutionLifecycleStage.ValueType + ) # 2 """The gRPC call will not return until the update has passed validation on a worker. """ - UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: _UpdateWorkflowExecutionLifecycleStage.ValueType # 3 + UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: ( + _UpdateWorkflowExecutionLifecycleStage.ValueType + ) # 3 """The gRPC call will not return until the update has executed to completion on a worker and has either been rejected or returned a value or an error. """ @@ -78,20 +88,28 @@ class UpdateWorkflowExecutionLifecycleStage( completion. """ -UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: UpdateWorkflowExecutionLifecycleStage.ValueType # 0 +UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED: ( + UpdateWorkflowExecutionLifecycleStage.ValueType +) # 0 """An unspecified vale for this enum.""" -UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: UpdateWorkflowExecutionLifecycleStage.ValueType # 1 +UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED: ( + UpdateWorkflowExecutionLifecycleStage.ValueType +) # 1 """The gRPC call will not return until the update request has been admitted by the server - it may be the case that due to a considerations like load or resource limits that an update is made to wait before the server will indicate that it has been received and will be processed. This value does not wait for any sort of acknowledgement from a worker. """ -UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: UpdateWorkflowExecutionLifecycleStage.ValueType # 2 +UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED: ( + UpdateWorkflowExecutionLifecycleStage.ValueType +) # 2 """The gRPC call will not return until the update has passed validation on a worker. """ -UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: UpdateWorkflowExecutionLifecycleStage.ValueType # 3 +UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED: ( + UpdateWorkflowExecutionLifecycleStage.ValueType +) # 3 """The gRPC call will not return until the update has executed to completion on a worker and has either been rejected or returned a value or an error. """ diff --git a/temporalio/api/enums/v1/workflow_pb2.py b/temporalio/api/enums/v1/workflow_pb2.py index 7a1d70d6..6fda3ea7 100644 --- a/temporalio/api/enums/v1/workflow_pb2.py +++ b/temporalio/api/enums/v1/workflow_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/enums/v1/workflow.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/enums/v1/workflow_pb2.pyi b/temporalio/api/enums/v1/workflow_pb2.pyi index aab04b2c..9df29d2a 100644 --- a/temporalio/api/enums/v1/workflow_pb2.pyi +++ b/temporalio/api/enums/v1/workflow_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper import sys import typing +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper + if sys.version_info >= (3, 10): import typing as typing_extensions else: @@ -50,7 +52,9 @@ class _WorkflowIdReusePolicyEnumTypeWrapper( WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED: _WorkflowIdReusePolicy.ValueType # 0 WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE: _WorkflowIdReusePolicy.ValueType # 1 """Allow starting a workflow execution using the same workflow id.""" - WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: _WorkflowIdReusePolicy.ValueType # 2 + WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: ( + _WorkflowIdReusePolicy.ValueType + ) # 2 """Allow starting a workflow execution using the same workflow id, only when the last execution's final state is one of [terminated, cancelled, timed out, failed]. """ @@ -77,7 +81,9 @@ class WorkflowIdReusePolicy( WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED: WorkflowIdReusePolicy.ValueType # 0 WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE: WorkflowIdReusePolicy.ValueType # 1 """Allow starting a workflow execution using the same workflow id.""" -WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: WorkflowIdReusePolicy.ValueType # 2 +WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY: ( + WorkflowIdReusePolicy.ValueType +) # 2 """Allow starting a workflow execution using the same workflow id, only when the last execution's final state is one of [terminated, cancelled, timed out, failed]. """ @@ -109,7 +115,9 @@ class _WorkflowIdConflictPolicyEnumTypeWrapper( """Don't start a new workflow; instead return `WorkflowExecutionAlreadyStartedFailure`.""" WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING: _WorkflowIdConflictPolicy.ValueType # 2 """Don't start a new workflow; instead return a workflow handle for the running workflow.""" - WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING: _WorkflowIdConflictPolicy.ValueType # 3 + WORKFLOW_ID_CONFLICT_POLICY_TERMINATE_EXISTING: ( + _WorkflowIdConflictPolicy.ValueType + ) # 3 """Terminate the running workflow before starting a new one.""" class WorkflowIdConflictPolicy( diff --git a/temporalio/api/errordetails/v1/message_pb2.py b/temporalio/api/errordetails/v1/message_pb2.py index df486ed5..96309bdd 100644 --- a/temporalio/api/errordetails/v1/message_pb2.py +++ b/temporalio/api/errordetails/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/errordetails/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -70,7 +71,7 @@ (_message.Message,), { "DESCRIPTOR": _NOTFOUNDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NotFoundFailure) }, ) @@ -81,7 +82,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONALREADYSTARTEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure) }, ) @@ -92,7 +93,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACENOTACTIVEFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NamespaceNotActiveFailure) }, ) @@ -103,7 +104,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEINVALIDSTATEFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NamespaceInvalidStateFailure) }, ) @@ -114,7 +115,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACENOTFOUNDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NamespaceNotFoundFailure) }, ) @@ -125,7 +126,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEALREADYEXISTSFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NamespaceAlreadyExistsFailure) }, ) @@ -136,7 +137,7 @@ (_message.Message,), { "DESCRIPTOR": _CLIENTVERSIONNOTSUPPORTEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.ClientVersionNotSupportedFailure) }, ) @@ -147,7 +148,7 @@ (_message.Message,), { "DESCRIPTOR": _SERVERVERSIONNOTSUPPORTEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.ServerVersionNotSupportedFailure) }, ) @@ -158,7 +159,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELLATIONALREADYREQUESTEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.CancellationAlreadyRequestedFailure) }, ) @@ -169,7 +170,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYFAILEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.QueryFailedFailure) }, ) @@ -180,7 +181,7 @@ (_message.Message,), { "DESCRIPTOR": _PERMISSIONDENIEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.PermissionDeniedFailure) }, ) @@ -191,7 +192,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOURCEEXHAUSTEDFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.ResourceExhaustedFailure) }, ) @@ -202,7 +203,7 @@ (_message.Message,), { "DESCRIPTOR": _SYSTEMWORKFLOWFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.SystemWorkflowFailure) }, ) @@ -213,7 +214,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWNOTREADYFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.WorkflowNotReadyFailure) }, ) @@ -224,7 +225,7 @@ (_message.Message,), { "DESCRIPTOR": _NEWERBUILDEXISTSFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.NewerBuildExistsFailure) }, ) @@ -239,12 +240,12 @@ (_message.Message,), { "DESCRIPTOR": _MULTIOPERATIONEXECUTIONFAILURE_OPERATIONSTATUS, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.MultiOperationExecutionFailure.OperationStatus) }, ), "DESCRIPTOR": _MULTIOPERATIONEXECUTIONFAILURE, - "__module__": "temporal.api.errordetails.v1.message_pb2" + "__module__": "temporal.api.errordetails.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.errordetails.v1.MultiOperationExecutionFailure) }, ) diff --git a/temporalio/api/errordetails/v1/message_pb2.pyi b/temporalio/api/errordetails/v1/message_pb2.pyi index 45ca9017..bd0079cb 100644 --- a/temporalio/api/errordetails/v1/message_pb2.pyi +++ b/temporalio/api/errordetails/v1/message_pb2.pyi @@ -4,13 +4,16 @@ isort:skip_file These error details are supplied in google.rpc.Status#details as described in "Google APIs, Error Model" (https://cloud.google.com/apis/design/errors#error_model) and extend standard Error Details defined in https://github.com/googleapis/googleapis/blob/master/google/rpc/error_details.proto """ + import builtins import collections.abc +import sys + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.enums.v1.namespace_pb2 diff --git a/temporalio/api/export/v1/message_pb2.py b/temporalio/api/export/v1/message_pb2.py index 99f8b2ec..05a46aef 100644 --- a/temporalio/api/export/v1/message_pb2.py +++ b/temporalio/api/export/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/export/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -29,7 +30,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTION, - "__module__": "temporal.api.export.v1.message_pb2" + "__module__": "temporal.api.export.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.export.v1.WorkflowExecution) }, ) @@ -40,7 +41,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONS, - "__module__": "temporal.api.export.v1.message_pb2" + "__module__": "temporal.api.export.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.export.v1.WorkflowExecutions) }, ) diff --git a/temporalio/api/export/v1/message_pb2.pyi b/temporalio/api/export/v1/message_pb2.pyi index 1b3c6caf..dbd64a7f 100644 --- a/temporalio/api/export/v1/message_pb2.pyi +++ b/temporalio/api/export/v1/message_pb2.pyi @@ -23,12 +23,15 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys + import temporalio.api.history.v1.message_pb2 if sys.version_info >= (3, 8): diff --git a/temporalio/api/failure/v1/message_pb2.py b/temporalio/api/failure/v1/message_pb2.py index 5c62fc6a..58036f24 100644 --- a/temporalio/api/failure/v1/message_pb2.py +++ b/temporalio/api/failure/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/failure/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -49,7 +50,7 @@ (_message.Message,), { "DESCRIPTOR": _APPLICATIONFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ApplicationFailureInfo) }, ) @@ -60,7 +61,7 @@ (_message.Message,), { "DESCRIPTOR": _TIMEOUTFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.TimeoutFailureInfo) }, ) @@ -71,7 +72,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELEDFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.CanceledFailureInfo) }, ) @@ -82,7 +83,7 @@ (_message.Message,), { "DESCRIPTOR": _TERMINATEDFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.TerminatedFailureInfo) }, ) @@ -93,7 +94,7 @@ (_message.Message,), { "DESCRIPTOR": _SERVERFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ServerFailureInfo) }, ) @@ -104,7 +105,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETWORKFLOWFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ResetWorkflowFailureInfo) }, ) @@ -115,7 +116,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ActivityFailureInfo) }, ) @@ -126,7 +127,7 @@ (_message.Message,), { "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo) }, ) @@ -137,7 +138,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONFAILUREINFO, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.NexusOperationFailureInfo) }, ) @@ -148,7 +149,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILURE, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.Failure) }, ) @@ -159,7 +160,7 @@ (_message.Message,), { "DESCRIPTOR": _MULTIOPERATIONEXECUTIONABORTED, - "__module__": "temporal.api.failure.v1.message_pb2" + "__module__": "temporal.api.failure.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.failure.v1.MultiOperationExecutionAborted) }, ) diff --git a/temporalio/api/failure/v1/message_pb2.pyi b/temporalio/api/failure/v1/message_pb2.pyi index 63e95b51..0463f642 100644 --- a/temporalio/api/failure/v1/message_pb2.pyi +++ b/temporalio/api/failure/v1/message_pb2.pyi @@ -23,11 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.workflow_pb2 diff --git a/temporalio/api/filter/v1/message_pb2.py b/temporalio/api/filter/v1/message_pb2.py index 6a3453c4..d939344c 100644 --- a/temporalio/api/filter/v1/message_pb2.py +++ b/temporalio/api/filter/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/filter/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -33,7 +34,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONFILTER, - "__module__": "temporal.api.filter.v1.message_pb2" + "__module__": "temporal.api.filter.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.WorkflowExecutionFilter) }, ) @@ -44,7 +45,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTYPEFILTER, - "__module__": "temporal.api.filter.v1.message_pb2" + "__module__": "temporal.api.filter.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.WorkflowTypeFilter) }, ) @@ -55,7 +56,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTTIMEFILTER, - "__module__": "temporal.api.filter.v1.message_pb2" + "__module__": "temporal.api.filter.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.StartTimeFilter) }, ) @@ -66,7 +67,7 @@ (_message.Message,), { "DESCRIPTOR": _STATUSFILTER, - "__module__": "temporal.api.filter.v1.message_pb2" + "__module__": "temporal.api.filter.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.filter.v1.StatusFilter) }, ) diff --git a/temporalio/api/filter/v1/message_pb2.pyi b/temporalio/api/filter/v1/message_pb2.pyi index a2f66f9d..ae123bc2 100644 --- a/temporalio/api/filter/v1/message_pb2.pyi +++ b/temporalio/api/filter/v1/message_pb2.pyi @@ -23,11 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.enums.v1.workflow_pb2 if sys.version_info >= (3, 8): diff --git a/temporalio/api/history/v1/message_pb2.py b/temporalio/api/history/v1/message_pb2.py index b75a28af..a341d3cb 100644 --- a/temporalio/api/history/v1/message_pb2.py +++ b/temporalio/api/history/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/history/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -240,7 +241,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionStartedEventAttributes) }, ) @@ -251,7 +252,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes) }, ) @@ -262,7 +263,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionFailedEventAttributes) }, ) @@ -273,20 +274,22 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes) }, ) _sym_db.RegisterMessage(WorkflowExecutionTimedOutEventAttributes) -WorkflowExecutionContinuedAsNewEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionContinuedAsNewEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes) - }, +WorkflowExecutionContinuedAsNewEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionContinuedAsNewEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONCONTINUEDASNEWEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionContinuedAsNewEventAttributes) @@ -295,7 +298,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskScheduledEventAttributes) }, ) @@ -306,7 +309,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskStartedEventAttributes) }, ) @@ -317,7 +320,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskCompletedEventAttributes) }, ) @@ -328,7 +331,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes) }, ) @@ -339,7 +342,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowTaskFailedEventAttributes) }, ) @@ -350,7 +353,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskScheduledEventAttributes) }, ) @@ -361,7 +364,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskStartedEventAttributes) }, ) @@ -372,7 +375,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCompletedEventAttributes) }, ) @@ -383,7 +386,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskFailedEventAttributes) }, ) @@ -394,7 +397,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskTimedOutEventAttributes) }, ) @@ -405,7 +408,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes) }, ) @@ -416,7 +419,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKCANCELEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityTaskCanceledEventAttributes) }, ) @@ -427,7 +430,7 @@ (_message.Message,), { "DESCRIPTOR": _TIMERSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerStartedEventAttributes) }, ) @@ -438,7 +441,7 @@ (_message.Message,), { "DESCRIPTOR": _TIMERFIREDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerFiredEventAttributes) }, ) @@ -449,20 +452,22 @@ (_message.Message,), { "DESCRIPTOR": _TIMERCANCELEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.TimerCanceledEventAttributes) }, ) _sym_db.RegisterMessage(TimerCanceledEventAttributes) -WorkflowExecutionCancelRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes) - }, +WorkflowExecutionCancelRequestedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionCancelRequestedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionCancelRequestedEventAttributes) @@ -471,7 +476,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes) }, ) @@ -486,12 +491,12 @@ (_message.Message,), { "DESCRIPTOR": _MARKERRECORDEDEVENTATTRIBUTES_DETAILSENTRY, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry) }, ), "DESCRIPTOR": _MARKERRECORDEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.MarkerRecordedEventAttributes) }, ) @@ -503,7 +508,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes) }, ) @@ -514,7 +519,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes) }, ) @@ -525,75 +530,87 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) }, ) _sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionInitiatedEventAttributes) -RequestCancelExternalWorkflowExecutionFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "RequestCancelExternalWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes) - }, +RequestCancelExternalWorkflowExecutionFailedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "RequestCancelExternalWorkflowExecutionFailedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(RequestCancelExternalWorkflowExecutionFailedEventAttributes) -ExternalWorkflowExecutionCancelRequestedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ExternalWorkflowExecutionCancelRequestedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes) - }, +ExternalWorkflowExecutionCancelRequestedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ExternalWorkflowExecutionCancelRequestedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONCANCELREQUESTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ExternalWorkflowExecutionCancelRequestedEventAttributes) -SignalExternalWorkflowExecutionInitiatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionInitiatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes) - }, +SignalExternalWorkflowExecutionInitiatedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "SignalExternalWorkflowExecutionInitiatedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(SignalExternalWorkflowExecutionInitiatedEventAttributes) -SignalExternalWorkflowExecutionFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "SignalExternalWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes) - }, +SignalExternalWorkflowExecutionFailedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "SignalExternalWorkflowExecutionFailedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(SignalExternalWorkflowExecutionFailedEventAttributes) -ExternalWorkflowExecutionSignaledEventAttributes = _reflection.GeneratedProtocolMessageType( - "ExternalWorkflowExecutionSignaledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes) - }, +ExternalWorkflowExecutionSignaledEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ExternalWorkflowExecutionSignaledEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _EXTERNALWORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ExternalWorkflowExecutionSignaledEventAttributes) -UpsertWorkflowSearchAttributesEventAttributes = _reflection.GeneratedProtocolMessageType( - "UpsertWorkflowSearchAttributesEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes) - }, +UpsertWorkflowSearchAttributesEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "UpsertWorkflowSearchAttributesEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTESEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes) + }, + ) ) _sym_db.RegisterMessage(UpsertWorkflowSearchAttributesEventAttributes) @@ -602,31 +619,35 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWPROPERTIESMODIFIEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes) }, ) _sym_db.RegisterMessage(WorkflowPropertiesModifiedEventAttributes) -StartChildWorkflowExecutionInitiatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecutionInitiatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes) - }, +StartChildWorkflowExecutionInitiatedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "StartChildWorkflowExecutionInitiatedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(StartChildWorkflowExecutionInitiatedEventAttributes) -StartChildWorkflowExecutionFailedEventAttributes = _reflection.GeneratedProtocolMessageType( - "StartChildWorkflowExecutionFailedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes) - }, +StartChildWorkflowExecutionFailedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "StartChildWorkflowExecutionFailedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(StartChildWorkflowExecutionFailedEventAttributes) @@ -635,20 +656,22 @@ (_message.Message,), { "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes) }, ) _sym_db.RegisterMessage(ChildWorkflowExecutionStartedEventAttributes) -ChildWorkflowExecutionCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes) - }, +ChildWorkflowExecutionCompletedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ChildWorkflowExecutionCompletedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCOMPLETEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ChildWorkflowExecutionCompletedEventAttributes) @@ -657,108 +680,126 @@ (_message.Message,), { "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes) }, ) _sym_db.RegisterMessage(ChildWorkflowExecutionFailedEventAttributes) -ChildWorkflowExecutionCanceledEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionCanceledEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes) - }, +ChildWorkflowExecutionCanceledEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ChildWorkflowExecutionCanceledEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONCANCELEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ChildWorkflowExecutionCanceledEventAttributes) -ChildWorkflowExecutionTimedOutEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionTimedOutEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes) - }, +ChildWorkflowExecutionTimedOutEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ChildWorkflowExecutionTimedOutEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTIMEDOUTEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ChildWorkflowExecutionTimedOutEventAttributes) -ChildWorkflowExecutionTerminatedEventAttributes = _reflection.GeneratedProtocolMessageType( - "ChildWorkflowExecutionTerminatedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) - }, +ChildWorkflowExecutionTerminatedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ChildWorkflowExecutionTerminatedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _CHILDWORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ChildWorkflowExecutionTerminatedEventAttributes) -WorkflowPropertiesModifiedExternallyEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowPropertiesModifiedExternallyEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes) - }, +WorkflowPropertiesModifiedExternallyEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowPropertiesModifiedExternallyEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowPropertiesModifiedExternallyEventAttributes) -ActivityPropertiesModifiedExternallyEventAttributes = _reflection.GeneratedProtocolMessageType( - "ActivityPropertiesModifiedExternallyEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes) - }, +ActivityPropertiesModifiedExternallyEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "ActivityPropertiesModifiedExternallyEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _ACTIVITYPROPERTIESMODIFIEDEXTERNALLYEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes) + }, + ) ) _sym_db.RegisterMessage(ActivityPropertiesModifiedExternallyEventAttributes) -WorkflowExecutionUpdateAcceptedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateAcceptedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes) - }, +WorkflowExecutionUpdateAcceptedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionUpdateAcceptedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEACCEPTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionUpdateAcceptedEventAttributes) -WorkflowExecutionUpdateCompletedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateCompletedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes) - }, +WorkflowExecutionUpdateCompletedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionUpdateCompletedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATECOMPLETEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionUpdateCompletedEventAttributes) -WorkflowExecutionUpdateRejectedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateRejectedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes) - }, +WorkflowExecutionUpdateRejectedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionUpdateRejectedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEREJECTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionUpdateRejectedEventAttributes) -WorkflowExecutionUpdateAdmittedEventAttributes = _reflection.GeneratedProtocolMessageType( - "WorkflowExecutionUpdateAdmittedEventAttributes", - (_message.Message,), - { - "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" - # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes) - }, +WorkflowExecutionUpdateAdmittedEventAttributes = ( + _reflection.GeneratedProtocolMessageType( + "WorkflowExecutionUpdateAdmittedEventAttributes", + (_message.Message,), + { + "DESCRIPTOR": _WORKFLOWEXECUTIONUPDATEADMITTEDEVENTATTRIBUTES, + "__module__": "temporal.api.history.v1.message_pb2", + # @@protoc_insertion_point(class_scope:temporal.api.history.v1.WorkflowExecutionUpdateAdmittedEventAttributes) + }, + ) ) _sym_db.RegisterMessage(WorkflowExecutionUpdateAdmittedEventAttributes) @@ -771,12 +812,12 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES_NEXUSHEADERENTRY, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes.NexusHeaderEntry) }, ), "DESCRIPTOR": _NEXUSOPERATIONSCHEDULEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationScheduledEventAttributes) }, ) @@ -788,7 +829,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONSTARTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationStartedEventAttributes) }, ) @@ -799,7 +840,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONCOMPLETEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCompletedEventAttributes) }, ) @@ -810,7 +851,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONFAILEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationFailedEventAttributes) }, ) @@ -821,7 +862,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONTIMEDOUTEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationTimedOutEventAttributes) }, ) @@ -832,7 +873,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONCANCELEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCanceledEventAttributes) }, ) @@ -843,7 +884,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONCANCELREQUESTEDEVENTATTRIBUTES, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.NexusOperationCancelRequestedEventAttributes) }, ) @@ -854,7 +895,7 @@ (_message.Message,), { "DESCRIPTOR": _HISTORYEVENT, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.HistoryEvent) }, ) @@ -865,7 +906,7 @@ (_message.Message,), { "DESCRIPTOR": _HISTORY, - "__module__": "temporal.api.history.v1.message_pb2" + "__module__": "temporal.api.history.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.history.v1.History) }, ) @@ -932,9 +973,7 @@ _WORKFLOWEXECUTIONSIGNALEDEVENTATTRIBUTES._serialized_end = 8321 _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_start = 8324 _WORKFLOWEXECUTIONTERMINATEDEVENTATTRIBUTES._serialized_end = 8453 - _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = ( - 8456 - ) + _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_start = 8456 _REQUESTCANCELEXTERNALWORKFLOWEXECUTIONINITIATEDEVENTATTRIBUTES._serialized_end = ( 8736 ) diff --git a/temporalio/api/history/v1/message_pb2.pyi b/temporalio/api/history/v1/message_pb2.pyi index be7d4133..df696f0c 100644 --- a/temporalio/api/history/v1/message_pb2.pyi +++ b/temporalio/api/history/v1/message_pb2.pyi @@ -23,14 +23,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.event_type_pb2 import temporalio.api.enums.v1.failed_cause_pb2 @@ -2330,13 +2333,17 @@ class StartChildWorkflowExecutionInitiatedEventAttributes( @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - parent_close_policy: temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + parent_close_policy: ( + temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + ) """Default: PARENT_CLOSE_POLICY_TERMINATE.""" control: builtins.str """Deprecated""" workflow_task_completed_event_id: builtins.int """The `WORKFLOW_TASK_COMPLETED` event which this command was reported with""" - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: ... @@ -3573,8 +3580,12 @@ class HistoryEvent(google.protobuf.message.Message): WORKFLOW_EXECUTION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int WORKFLOW_EXECUTION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int - REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int - EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: ( + builtins.int + ) + EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED_EVENT_ATTRIBUTES_FIELD_NUMBER: ( + builtins.int + ) WORKFLOW_EXECUTION_CONTINUED_AS_NEW_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int START_CHILD_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int START_CHILD_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int @@ -3584,8 +3595,12 @@ class HistoryEvent(google.protobuf.message.Message): CHILD_WORKFLOW_EXECUTION_CANCELED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int CHILD_WORKFLOW_EXECUTION_TIMED_OUT_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int CHILD_WORKFLOW_EXECUTION_TERMINATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int - SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED_EVENT_ATTRIBUTES_FIELD_NUMBER: ( + builtins.int + ) + SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_EVENT_ATTRIBUTES_FIELD_NUMBER: ( + builtins.int + ) EXTERNAL_WORKFLOW_EXECUTION_SIGNALED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int UPSERT_WORKFLOW_SEARCH_ATTRIBUTES_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int WORKFLOW_EXECUTION_UPDATE_ACCEPTED_EVENT_ATTRIBUTES_FIELD_NUMBER: builtins.int diff --git a/temporalio/api/interaction/v1/message_pb2.py b/temporalio/api/interaction/v1/message_pb2.py index 2bb75236..73768c34 100644 --- a/temporalio/api/interaction/v1/message_pb2.py +++ b/temporalio/api/interaction/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/interaction/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -37,7 +38,7 @@ (_message.Message,), { "DESCRIPTOR": _META, - "__module__": "temporal.api.interaction.v1.message_pb2" + "__module__": "temporal.api.interaction.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.interaction.v1.Meta) }, ) @@ -48,7 +49,7 @@ (_message.Message,), { "DESCRIPTOR": _INPUT, - "__module__": "temporal.api.interaction.v1.message_pb2" + "__module__": "temporal.api.interaction.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.interaction.v1.Input) }, ) @@ -59,7 +60,7 @@ (_message.Message,), { "DESCRIPTOR": _OUTPUT, - "__module__": "temporal.api.interaction.v1.message_pb2" + "__module__": "temporal.api.interaction.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.interaction.v1.Output) }, ) @@ -70,7 +71,7 @@ (_message.Message,), { "DESCRIPTOR": _INVOCATION, - "__module__": "temporal.api.interaction.v1.message_pb2" + "__module__": "temporal.api.interaction.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.interaction.v1.Invocation) }, ) diff --git a/temporalio/api/interaction/v1/message_pb2.pyi b/temporalio/api/interaction/v1/message_pb2.pyi index 0f3ec784..3439083f 100644 --- a/temporalio/api/interaction/v1/message_pb2.pyi +++ b/temporalio/api/interaction/v1/message_pb2.pyi @@ -23,10 +23,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.interaction_type_pb2 import temporalio.api.failure.v1.message_pb2 @@ -57,7 +60,9 @@ class Meta(google.protobuf.message.Message): history up to and including this event ID should be visible to the interaction when it executes. """ - interaction_type: temporalio.api.enums.v1.interaction_type_pb2.InteractionType.ValueType + interaction_type: ( + temporalio.api.enums.v1.interaction_type_pb2.InteractionType.ValueType + ) """The type of this interaction.""" identity: builtins.str """A string identifying the agent that requested this interaction.""" diff --git a/temporalio/api/namespace/v1/message_pb2.py b/temporalio/api/namespace/v1/message_pb2.py index 179f1360..06b0fd95 100644 --- a/temporalio/api/namespace/v1/message_pb2.py +++ b/temporalio/api/namespace/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/namespace/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -47,7 +48,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEINFO_DATAENTRY, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.DataEntry) }, ), @@ -56,12 +57,12 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEINFO_CAPABILITIES, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo.Capabilities) }, ), "DESCRIPTOR": _NAMESPACEINFO, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceInfo) }, ) @@ -78,12 +79,12 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACECONFIG_CUSTOMSEARCHATTRIBUTEALIASESENTRY, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntry) }, ), "DESCRIPTOR": _NAMESPACECONFIG, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceConfig) }, ) @@ -99,12 +100,12 @@ (_message.Message,), { "DESCRIPTOR": _BADBINARIES_BINARIESENTRY, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaries.BinariesEntry) }, ), "DESCRIPTOR": _BADBINARIES, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaries) }, ) @@ -116,7 +117,7 @@ (_message.Message,), { "DESCRIPTOR": _BADBINARYINFO, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.BadBinaryInfo) }, ) @@ -131,12 +132,12 @@ (_message.Message,), { "DESCRIPTOR": _UPDATENAMESPACEINFO_DATAENTRY, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry) }, ), "DESCRIPTOR": _UPDATENAMESPACEINFO, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.UpdateNamespaceInfo) }, ) @@ -148,7 +149,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEFILTER, - "__module__": "temporal.api.namespace.v1.message_pb2" + "__module__": "temporal.api.namespace.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.namespace.v1.NamespaceFilter) }, ) diff --git a/temporalio/api/namespace/v1/message_pb2.pyi b/temporalio/api/namespace/v1/message_pb2.pyi index 13fac36a..73a3db19 100644 --- a/temporalio/api/namespace/v1/message_pb2.pyi +++ b/temporalio/api/namespace/v1/message_pb2.pyi @@ -23,14 +23,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 sys + import temporalio.api.enums.v1.namespace_pb2 if sys.version_info >= (3, 8): @@ -192,10 +195,14 @@ class NamespaceConfig(google.protobuf.message.Message): ) -> google.protobuf.duration_pb2.Duration: ... @property def bad_binaries(self) -> global___BadBinaries: ... - history_archival_state: temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + history_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" history_archival_uri: builtins.str - visibility_archival_state: temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + visibility_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" visibility_archival_uri: builtins.str @property diff --git a/temporalio/api/nexus/v1/message_pb2.py b/temporalio/api/nexus/v1/message_pb2.py index 8266c349..e6fad2a4 100644 --- a/temporalio/api/nexus/v1/message_pb2.py +++ b/temporalio/api/nexus/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/nexus/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -59,12 +60,12 @@ (_message.Message,), { "DESCRIPTOR": _FAILURE_METADATAENTRY, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure.MetadataEntry) }, ), "DESCRIPTOR": _FAILURE, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Failure) }, ) @@ -76,7 +77,7 @@ (_message.Message,), { "DESCRIPTOR": _HANDLERERROR, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.HandlerError) }, ) @@ -87,7 +88,7 @@ (_message.Message,), { "DESCRIPTOR": _UNSUCCESSFULOPERATIONERROR, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.UnsuccessfulOperationError) }, ) @@ -102,12 +103,12 @@ (_message.Message,), { "DESCRIPTOR": _STARTOPERATIONREQUEST_CALLBACKHEADERENTRY, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest.CallbackHeaderEntry) }, ), "DESCRIPTOR": _STARTOPERATIONREQUEST, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationRequest) }, ) @@ -119,7 +120,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELOPERATIONREQUEST, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationRequest) }, ) @@ -134,12 +135,12 @@ (_message.Message,), { "DESCRIPTOR": _REQUEST_HEADERENTRY, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request.HeaderEntry) }, ), "DESCRIPTOR": _REQUEST, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Request) }, ) @@ -155,7 +156,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTOPERATIONRESPONSE_SYNC, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Sync) }, ), @@ -164,12 +165,12 @@ (_message.Message,), { "DESCRIPTOR": _STARTOPERATIONRESPONSE_ASYNC, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse.Async) }, ), "DESCRIPTOR": _STARTOPERATIONRESPONSE, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.StartOperationResponse) }, ) @@ -182,7 +183,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELOPERATIONRESPONSE, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.CancelOperationResponse) }, ) @@ -193,7 +194,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONSE, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Response) }, ) @@ -204,7 +205,7 @@ (_message.Message,), { "DESCRIPTOR": _ENDPOINT, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.Endpoint) }, ) @@ -215,7 +216,7 @@ (_message.Message,), { "DESCRIPTOR": _ENDPOINTSPEC, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointSpec) }, ) @@ -230,7 +231,7 @@ (_message.Message,), { "DESCRIPTOR": _ENDPOINTTARGET_WORKER, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.Worker) }, ), @@ -239,12 +240,12 @@ (_message.Message,), { "DESCRIPTOR": _ENDPOINTTARGET_EXTERNAL, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget.External) }, ), "DESCRIPTOR": _ENDPOINTTARGET, - "__module__": "temporal.api.nexus.v1.message_pb2" + "__module__": "temporal.api.nexus.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.nexus.v1.EndpointTarget) }, ) diff --git a/temporalio/api/nexus/v1/message_pb2.pyi b/temporalio/api/nexus/v1/message_pb2.pyi index f56fd2a2..43868674 100644 --- a/temporalio/api/nexus/v1/message_pb2.pyi +++ b/temporalio/api/nexus/v1/message_pb2.pyi @@ -21,13 +21,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.sdk.v1.user_metadata_pb2 diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.py b/temporalio/api/operatorservice/v1/request_response_pb2.py index 783d0a2f..78e372d6 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.py +++ b/temporalio/api/operatorservice/v1/request_response_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/operatorservice/v1/request_response.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -109,12 +110,12 @@ (_message.Message,), { "DESCRIPTOR": _ADDSEARCHATTRIBUTESREQUEST_SEARCHATTRIBUTESENTRY, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry) }, ), "DESCRIPTOR": _ADDSEARCHATTRIBUTESREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesRequest) }, ) @@ -126,7 +127,7 @@ (_message.Message,), { "DESCRIPTOR": _ADDSEARCHATTRIBUTESRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddSearchAttributesResponse) }, ) @@ -137,7 +138,7 @@ (_message.Message,), { "DESCRIPTOR": _REMOVESEARCHATTRIBUTESREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveSearchAttributesRequest) }, ) @@ -148,7 +149,7 @@ (_message.Message,), { "DESCRIPTOR": _REMOVESEARCHATTRIBUTESRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveSearchAttributesResponse) }, ) @@ -159,7 +160,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSEARCHATTRIBUTESREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesRequest) }, ) @@ -174,7 +175,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_CUSTOMATTRIBUTESENTRY, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntry) }, ), @@ -183,7 +184,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_SYSTEMATTRIBUTESENTRY, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntry) }, ), @@ -192,12 +193,12 @@ (_message.Message,), { "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE_STORAGESCHEMAENTRY, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry) }, ), "DESCRIPTOR": _LISTSEARCHATTRIBUTESRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListSearchAttributesResponse) }, ) @@ -211,7 +212,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETENAMESPACEREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNamespaceRequest) }, ) @@ -222,7 +223,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETENAMESPACERESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNamespaceResponse) }, ) @@ -233,7 +234,7 @@ (_message.Message,), { "DESCRIPTOR": _ADDORUPDATEREMOTECLUSTERREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest) }, ) @@ -244,7 +245,7 @@ (_message.Message,), { "DESCRIPTOR": _ADDORUPDATEREMOTECLUSTERRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse) }, ) @@ -255,7 +256,7 @@ (_message.Message,), { "DESCRIPTOR": _REMOVEREMOTECLUSTERREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveRemoteClusterRequest) }, ) @@ -266,7 +267,7 @@ (_message.Message,), { "DESCRIPTOR": _REMOVEREMOTECLUSTERRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.RemoveRemoteClusterResponse) }, ) @@ -277,7 +278,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTCLUSTERSREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListClustersRequest) }, ) @@ -288,7 +289,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTCLUSTERSRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListClustersResponse) }, ) @@ -299,7 +300,7 @@ (_message.Message,), { "DESCRIPTOR": _CLUSTERMETADATA, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ClusterMetadata) }, ) @@ -310,7 +311,7 @@ (_message.Message,), { "DESCRIPTOR": _GETNEXUSENDPOINTREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointRequest) }, ) @@ -321,7 +322,7 @@ (_message.Message,), { "DESCRIPTOR": _GETNEXUSENDPOINTRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.GetNexusEndpointResponse) }, ) @@ -332,7 +333,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATENEXUSENDPOINTREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointRequest) }, ) @@ -343,7 +344,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATENEXUSENDPOINTRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.CreateNexusEndpointResponse) }, ) @@ -354,7 +355,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATENEXUSENDPOINTREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointRequest) }, ) @@ -365,7 +366,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATENEXUSENDPOINTRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.UpdateNexusEndpointResponse) }, ) @@ -376,7 +377,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETENEXUSENDPOINTREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointRequest) }, ) @@ -387,7 +388,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETENEXUSENDPOINTRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.DeleteNexusEndpointResponse) }, ) @@ -398,7 +399,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTNEXUSENDPOINTSREQUEST, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsRequest) }, ) @@ -409,7 +410,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTNEXUSENDPOINTSRESPONSE, - "__module__": "temporal.api.operatorservice.v1.request_response_pb2" + "__module__": "temporal.api.operatorservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.operatorservice.v1.ListNexusEndpointsResponse) }, ) diff --git a/temporalio/api/operatorservice/v1/request_response_pb2.pyi b/temporalio/api/operatorservice/v1/request_response_pb2.pyi index cac67873..48e88616 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2.pyi +++ b/temporalio/api/operatorservice/v1/request_response_pb2.pyi @@ -23,13 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 sys + import temporalio.api.enums.v1.common_pb2 import temporalio.api.nexus.v1.message_pb2 diff --git a/temporalio/api/operatorservice/v1/request_response_pb2_grpc.py b/temporalio/api/operatorservice/v1/request_response_pb2_grpc.py index 8a939394..bf947056 100644 --- a/temporalio/api/operatorservice/v1/request_response_pb2_grpc.py +++ b/temporalio/api/operatorservice/v1/request_response_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc diff --git a/temporalio/api/operatorservice/v1/service_pb2.py b/temporalio/api/operatorservice/v1/service_pb2.py index 410e7e7a..98e7b234 100644 --- a/temporalio/api/operatorservice/v1/service_pb2.py +++ b/temporalio/api/operatorservice/v1/service_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/operatorservice/v1/service.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/operatorservice/v1/service_pb2.pyi b/temporalio/api/operatorservice/v1/service_pb2.pyi index 7f4bb335..39652214 100644 --- a/temporalio/api/operatorservice/v1/service_pb2.pyi +++ b/temporalio/api/operatorservice/v1/service_pb2.pyi @@ -23,6 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import google.protobuf.descriptor DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/temporalio/api/operatorservice/v1/service_pb2_grpc.py b/temporalio/api/operatorservice/v1/service_pb2_grpc.py index 24504d18..9dff1e08 100644 --- a/temporalio/api/operatorservice/v1/service_pb2_grpc.py +++ b/temporalio/api/operatorservice/v1/service_pb2_grpc.py @@ -1,5 +1,6 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc from temporalio.api.operatorservice.v1 import ( diff --git a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi index 5c148e23..4e44e3b2 100644 --- a/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/operatorservice/v1/service_pb2_grpc.pyi @@ -23,8 +23,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import abc + import grpc + import temporalio.api.operatorservice.v1.request_response_pb2 class OperatorServiceStub: @@ -129,9 +132,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.AddSearchAttributesResponse: """AddSearchAttributes add custom search attributes. Returns ALREADY_EXISTS status code if a Search Attribute with any of the specified names already exists @@ -142,9 +143,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.RemoveSearchAttributesResponse: """RemoveSearchAttributes removes custom search attributes. Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered @@ -154,9 +153,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListSearchAttributesResponse: """ListSearchAttributes returns comprehensive information about search attributes.""" @abc.abstractmethod def DeleteNamespace( @@ -170,18 +167,14 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.AddOrUpdateRemoteClusterResponse: """AddOrUpdateRemoteCluster adds or updates remote cluster.""" @abc.abstractmethod def RemoveRemoteCluster( self, request: temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.RemoveRemoteClusterResponse: """RemoveRemoteCluster removes remote cluster.""" @abc.abstractmethod def ListClusters( @@ -204,9 +197,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.CreateNexusEndpointResponse: """Create a Nexus endpoint. This will fail if an endpoint with the same name is already registered with a status of ALREADY_EXISTS. Returns the created endpoint with its initial version. You may use this version for subsequent updates. @@ -216,9 +207,7 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.UpdateNexusEndpointResponse: """Optimistically update a Nexus endpoint based on provided version as obtained via the `GetNexusEndpoint` or `ListNexusEndpointResponse` APIs. This will fail with a status of FAILED_PRECONDITION if the version does not match. @@ -230,18 +219,14 @@ class OperatorServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.DeleteNexusEndpointResponse: """Delete an incoming Nexus service by ID.""" @abc.abstractmethod def ListNexusEndpoints( self, request: temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse - ): + ) -> temporalio.api.operatorservice.v1.request_response_pb2.ListNexusEndpointsResponse: """List all Nexus endpoints for the cluster, sorted by ID in ascending order. Set page_token in the request to the next_page_token field of the previous response to get the next page of results. An empty next_page_token indicates that there are no more results. During pagination, a newly added service with an ID lexicographically diff --git a/temporalio/api/protocol/v1/message_pb2.py b/temporalio/api/protocol/v1/message_pb2.py index dc7c6712..ac643ab3 100644 --- a/temporalio/api/protocol/v1/message_pb2.py +++ b/temporalio/api/protocol/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/protocol/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -26,7 +27,7 @@ (_message.Message,), { "DESCRIPTOR": _MESSAGE, - "__module__": "temporal.api.protocol.v1.message_pb2" + "__module__": "temporal.api.protocol.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.protocol.v1.Message) }, ) diff --git a/temporalio/api/protocol/v1/message_pb2.pyi b/temporalio/api/protocol/v1/message_pb2.pyi index 26d14e07..8385b79a 100644 --- a/temporalio/api/protocol/v1/message_pb2.pyi +++ b/temporalio/api/protocol/v1/message_pb2.pyi @@ -23,11 +23,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.any_pb2 import google.protobuf.descriptor import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/query/v1/message_pb2.py b/temporalio/api/query/v1/message_pb2.py index 226d26f1..01c2839e 100644 --- a/temporalio/api/query/v1/message_pb2.py +++ b/temporalio/api/query/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/query/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -36,7 +37,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWQUERY, - "__module__": "temporal.api.query.v1.message_pb2" + "__module__": "temporal.api.query.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.query.v1.WorkflowQuery) }, ) @@ -47,7 +48,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWQUERYRESULT, - "__module__": "temporal.api.query.v1.message_pb2" + "__module__": "temporal.api.query.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.query.v1.WorkflowQueryResult) }, ) @@ -58,7 +59,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYREJECTED, - "__module__": "temporal.api.query.v1.message_pb2" + "__module__": "temporal.api.query.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.query.v1.QueryRejected) }, ) diff --git a/temporalio/api/query/v1/message_pb2.pyi b/temporalio/api/query/v1/message_pb2.pyi index d8af647f..75398551 100644 --- a/temporalio/api/query/v1/message_pb2.pyi +++ b/temporalio/api/query/v1/message_pb2.pyi @@ -23,10 +23,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.query_pb2 import temporalio.api.enums.v1.workflow_pb2 diff --git a/temporalio/api/replication/v1/message_pb2.py b/temporalio/api/replication/v1/message_pb2.py index 0313c9c1..7b5a4a15 100644 --- a/temporalio/api/replication/v1/message_pb2.py +++ b/temporalio/api/replication/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/replication/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -34,7 +35,7 @@ (_message.Message,), { "DESCRIPTOR": _CLUSTERREPLICATIONCONFIG, - "__module__": "temporal.api.replication.v1.message_pb2" + "__module__": "temporal.api.replication.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.ClusterReplicationConfig) }, ) @@ -45,7 +46,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEREPLICATIONCONFIG, - "__module__": "temporal.api.replication.v1.message_pb2" + "__module__": "temporal.api.replication.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.NamespaceReplicationConfig) }, ) @@ -56,7 +57,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILOVERSTATUS, - "__module__": "temporal.api.replication.v1.message_pb2" + "__module__": "temporal.api.replication.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.replication.v1.FailoverStatus) }, ) diff --git a/temporalio/api/replication/v1/message_pb2.pyi b/temporalio/api/replication/v1/message_pb2.pyi index 49554336..32da6dd5 100644 --- a/temporalio/api/replication/v1/message_pb2.pyi +++ b/temporalio/api/replication/v1/message_pb2.pyi @@ -23,13 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.enums.v1.namespace_pb2 if sys.version_info >= (3, 8): diff --git a/temporalio/api/schedule/v1/message_pb2.py b/temporalio/api/schedule/v1/message_pb2.py index 64458c94..713f2200 100644 --- a/temporalio/api/schedule/v1/message_pb2.py +++ b/temporalio/api/schedule/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/schedule/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -54,7 +55,7 @@ (_message.Message,), { "DESCRIPTOR": _CALENDARSPEC, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.CalendarSpec) }, ) @@ -65,7 +66,7 @@ (_message.Message,), { "DESCRIPTOR": _RANGE, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.Range) }, ) @@ -76,7 +77,7 @@ (_message.Message,), { "DESCRIPTOR": _STRUCTUREDCALENDARSPEC, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.StructuredCalendarSpec) }, ) @@ -87,7 +88,7 @@ (_message.Message,), { "DESCRIPTOR": _INTERVALSPEC, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.IntervalSpec) }, ) @@ -98,7 +99,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULESPEC, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleSpec) }, ) @@ -109,7 +110,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEPOLICIES, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePolicies) }, ) @@ -120,7 +121,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEACTION, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleAction) }, ) @@ -131,7 +132,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEACTIONRESULT, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleActionResult) }, ) @@ -142,7 +143,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULESTATE, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleState) }, ) @@ -153,7 +154,7 @@ (_message.Message,), { "DESCRIPTOR": _TRIGGERIMMEDIATELYREQUEST, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.TriggerImmediatelyRequest) }, ) @@ -164,7 +165,7 @@ (_message.Message,), { "DESCRIPTOR": _BACKFILLREQUEST, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.BackfillRequest) }, ) @@ -175,7 +176,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEPATCH, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.SchedulePatch) }, ) @@ -186,7 +187,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEINFO, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleInfo) }, ) @@ -197,7 +198,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULE, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.Schedule) }, ) @@ -208,7 +209,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULELISTINFO, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleListInfo) }, ) @@ -219,7 +220,7 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULELISTENTRY, - "__module__": "temporal.api.schedule.v1.message_pb2" + "__module__": "temporal.api.schedule.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.schedule.v1.ScheduleListEntry) }, ) diff --git a/temporalio/api/schedule/v1/message_pb2.pyi b/temporalio/api/schedule/v1/message_pb2.pyi index 38d9d33a..854fa14a 100644 --- a/temporalio/api/schedule/v1/message_pb2.pyi +++ b/temporalio/api/schedule/v1/message_pb2.pyi @@ -6,14 +6,17 @@ isort:skip_file (-- api-linter: core::0203::input-only=disabled aip.dev/not-precedent: field_behavior annotation not available in our gogo fork --) """ + 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 sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.schedule_pb2 import temporalio.api.workflow.v1.message_pb2 diff --git a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py index 919b5a16..eaa8ff25 100644 --- a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py +++ b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/sdk/v1/enhanced_stack_trace.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -35,12 +36,12 @@ (_message.Message,), { "DESCRIPTOR": _ENHANCEDSTACKTRACE_SOURCESENTRY, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EnhancedStackTrace.SourcesEntry) }, ), "DESCRIPTOR": _ENHANCEDSTACKTRACE, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.EnhancedStackTrace) }, ) @@ -52,7 +53,7 @@ (_message.Message,), { "DESCRIPTOR": _STACKTRACESDKINFO, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceSDKInfo) }, ) @@ -63,7 +64,7 @@ (_message.Message,), { "DESCRIPTOR": _STACKTRACEFILESLICE, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceFileSlice) }, ) @@ -74,7 +75,7 @@ (_message.Message,), { "DESCRIPTOR": _STACKTRACEFILELOCATION, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTraceFileLocation) }, ) @@ -85,7 +86,7 @@ (_message.Message,), { "DESCRIPTOR": _STACKTRACE, - "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2" + "__module__": "temporal.api.sdk.v1.enhanced_stack_trace_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.StackTrace) }, ) diff --git a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi index 8314acaf..8a215c37 100644 --- a/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi +++ b/temporalio/api/sdk/v1/enhanced_stack_trace_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/sdk/v1/task_complete_metadata_pb2.py b/temporalio/api/sdk/v1/task_complete_metadata_pb2.py index 491eed3a..4b3306d7 100644 --- a/temporalio/api/sdk/v1/task_complete_metadata_pb2.py +++ b/temporalio/api/sdk/v1/task_complete_metadata_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/sdk/v1/task_complete_metadata.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -26,7 +27,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWTASKCOMPLETEDMETADATA, - "__module__": "temporal.api.sdk.v1.task_complete_metadata_pb2" + "__module__": "temporal.api.sdk.v1.task_complete_metadata_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowTaskCompletedMetadata) }, ) diff --git a/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi b/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi index 35770b14..ecf8e75a 100644 --- a/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/task_complete_metadata_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/sdk/v1/user_metadata_pb2.py b/temporalio/api/sdk/v1/user_metadata_pb2.py index f6da5ece..bbdb6882 100644 --- a/temporalio/api/sdk/v1/user_metadata_pb2.py +++ b/temporalio/api/sdk/v1/user_metadata_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/sdk/v1/user_metadata.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -28,7 +29,7 @@ (_message.Message,), { "DESCRIPTOR": _USERMETADATA, - "__module__": "temporal.api.sdk.v1.user_metadata_pb2" + "__module__": "temporal.api.sdk.v1.user_metadata_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.UserMetadata) }, ) diff --git a/temporalio/api/sdk/v1/user_metadata_pb2.pyi b/temporalio/api/sdk/v1/user_metadata_pb2.pyi index d13f933d..8c4be1b3 100644 --- a/temporalio/api/sdk/v1/user_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/user_metadata_pb2.pyi @@ -23,10 +23,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 if sys.version_info >= (3, 8): diff --git a/temporalio/api/sdk/v1/workflow_metadata_pb2.py b/temporalio/api/sdk/v1/workflow_metadata_pb2.py index c35eafd2..fabbe940 100644 --- a/temporalio/api/sdk/v1/workflow_metadata_pb2.py +++ b/temporalio/api/sdk/v1/workflow_metadata_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/sdk/v1/workflow_metadata.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -28,7 +29,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWMETADATA, - "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2" + "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowMetadata) }, ) @@ -39,7 +40,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWDEFINITION, - "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2" + "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowDefinition) }, ) @@ -50,7 +51,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWINTERACTIONDEFINITION, - "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2" + "__module__": "temporal.api.sdk.v1.workflow_metadata_pb2", # @@protoc_insertion_point(class_scope:temporal.api.sdk.v1.WorkflowInteractionDefinition) }, ) diff --git a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi index f050b6d2..1166e144 100644 --- a/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi +++ b/temporalio/api/sdk/v1/workflow_metadata_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/taskqueue/v1/message_pb2.py b/temporalio/api/taskqueue/v1/message_pb2.py index de280e3e..46c1bea1 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.py +++ b/temporalio/api/taskqueue/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/taskqueue/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -68,7 +69,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueue) }, ) @@ -79,7 +80,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUEMETADATA, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueMetadata) }, ) @@ -90,7 +91,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUEVERSIONSELECTION, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionSelection) }, ) @@ -105,12 +106,12 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUEVERSIONINFO_TYPESINFOENTRY, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry) }, ), "DESCRIPTOR": _TASKQUEUEVERSIONINFO, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueVersionInfo) }, ) @@ -122,7 +123,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUETYPEINFO, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueTypeInfo) }, ) @@ -133,7 +134,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUESTATS, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueStats) }, ) @@ -144,7 +145,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUESTATUS, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueStatus) }, ) @@ -155,7 +156,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKIDBLOCK, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskIdBlock) }, ) @@ -166,7 +167,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUEPARTITIONMETADATA, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueuePartitionMetadata) }, ) @@ -177,7 +178,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLERINFO, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.PollerInfo) }, ) @@ -188,7 +189,7 @@ (_message.Message,), { "DESCRIPTOR": _STICKYEXECUTIONATTRIBUTES, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.StickyExecutionAttributes) }, ) @@ -199,7 +200,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPATIBLEVERSIONSET, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.CompatibleVersionSet) }, ) @@ -210,7 +211,7 @@ (_message.Message,), { "DESCRIPTOR": _TASKQUEUEREACHABILITY, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TaskQueueReachability) }, ) @@ -221,7 +222,7 @@ (_message.Message,), { "DESCRIPTOR": _BUILDIDREACHABILITY, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdReachability) }, ) @@ -232,7 +233,7 @@ (_message.Message,), { "DESCRIPTOR": _RAMPBYPERCENTAGE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.RampByPercentage) }, ) @@ -243,7 +244,7 @@ (_message.Message,), { "DESCRIPTOR": _BUILDIDASSIGNMENTRULE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.BuildIdAssignmentRule) }, ) @@ -254,7 +255,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule) }, ) @@ -265,7 +266,7 @@ (_message.Message,), { "DESCRIPTOR": _TIMESTAMPEDBUILDIDASSIGNMENTRULE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule) }, ) @@ -276,7 +277,7 @@ (_message.Message,), { "DESCRIPTOR": _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporal.api.taskqueue.v1.message_pb2" + "__module__": "temporal.api.taskqueue.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule) }, ) diff --git a/temporalio/api/taskqueue/v1/message_pb2.pyi b/temporalio/api/taskqueue/v1/message_pb2.pyi index ffeb50d9..a14aa1bb 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.pyi +++ b/temporalio/api/taskqueue/v1/message_pb2.pyi @@ -23,15 +23,18 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 google.protobuf.wrappers_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.task_queue_pb2 @@ -176,7 +179,9 @@ class TaskQueueVersionInfo(google.protobuf.message.Message): builtins.int, global___TaskQueueTypeInfo ]: """Task Queue info per Task Type. Key is the numerical value of the temporalio.api.enums.v1.TaskQueueType enum.""" - task_reachability: temporalio.api.enums.v1.task_queue_pb2.BuildIdTaskReachability.ValueType + task_reachability: ( + temporalio.api.enums.v1.task_queue_pb2.BuildIdTaskReachability.ValueType + ) """Task Reachability is eventually consistent; there may be a delay until it converges to the most accurate value but it is designed in a way to take the more conservative side until it converges. For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY. diff --git a/temporalio/api/testservice/v1/request_response_pb2.py b/temporalio/api/testservice/v1/request_response_pb2.py index 4c42b16e..51ef70f6 100644 --- a/temporalio/api/testservice/v1/request_response_pb2.py +++ b/temporalio/api/testservice/v1/request_response_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/testservice/v1/request_response.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -38,7 +39,7 @@ (_message.Message,), { "DESCRIPTOR": _LOCKTIMESKIPPINGREQUEST, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.LockTimeSkippingRequest) }, ) @@ -49,7 +50,7 @@ (_message.Message,), { "DESCRIPTOR": _LOCKTIMESKIPPINGRESPONSE, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.LockTimeSkippingResponse) }, ) @@ -60,7 +61,7 @@ (_message.Message,), { "DESCRIPTOR": _UNLOCKTIMESKIPPINGREQUEST, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.UnlockTimeSkippingRequest) }, ) @@ -71,7 +72,7 @@ (_message.Message,), { "DESCRIPTOR": _UNLOCKTIMESKIPPINGRESPONSE, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.UnlockTimeSkippingResponse) }, ) @@ -82,7 +83,7 @@ (_message.Message,), { "DESCRIPTOR": _SLEEPUNTILREQUEST, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepUntilRequest) }, ) @@ -93,7 +94,7 @@ (_message.Message,), { "DESCRIPTOR": _SLEEPREQUEST, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepRequest) }, ) @@ -104,7 +105,7 @@ (_message.Message,), { "DESCRIPTOR": _SLEEPRESPONSE, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.SleepResponse) }, ) @@ -115,7 +116,7 @@ (_message.Message,), { "DESCRIPTOR": _GETCURRENTTIMERESPONSE, - "__module__": "temporal.api.testservice.v1.request_response_pb2" + "__module__": "temporal.api.testservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.testservice.v1.GetCurrentTimeResponse) }, ) diff --git a/temporalio/api/testservice/v1/request_response_pb2.pyi b/temporalio/api/testservice/v1/request_response_pb2.pyi index 39b44df3..e86bba03 100644 --- a/temporalio/api/testservice/v1/request_response_pb2.pyi +++ b/temporalio/api/testservice/v1/request_response_pb2.pyi @@ -23,12 +23,14 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/api/testservice/v1/request_response_pb2_grpc.py b/temporalio/api/testservice/v1/request_response_pb2_grpc.py index 8a939394..bf947056 100644 --- a/temporalio/api/testservice/v1/request_response_pb2_grpc.py +++ b/temporalio/api/testservice/v1/request_response_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc diff --git a/temporalio/api/testservice/v1/service_pb2.py b/temporalio/api/testservice/v1/service_pb2.py index 7904fd77..86a4260f 100644 --- a/temporalio/api/testservice/v1/service_pb2.py +++ b/temporalio/api/testservice/v1/service_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/testservice/v1/service.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/testservice/v1/service_pb2.pyi b/temporalio/api/testservice/v1/service_pb2.pyi index 7f4bb335..39652214 100644 --- a/temporalio/api/testservice/v1/service_pb2.pyi +++ b/temporalio/api/testservice/v1/service_pb2.pyi @@ -23,6 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import google.protobuf.descriptor DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/temporalio/api/testservice/v1/service_pb2_grpc.py b/temporalio/api/testservice/v1/service_pb2_grpc.py index 750093eb..56893d1d 100644 --- a/temporalio/api/testservice/v1/service_pb2_grpc.py +++ b/temporalio/api/testservice/v1/service_pb2_grpc.py @@ -1,5 +1,6 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 diff --git a/temporalio/api/testservice/v1/service_pb2_grpc.pyi b/temporalio/api/testservice/v1/service_pb2_grpc.pyi index 7704aa47..f3162f00 100644 --- a/temporalio/api/testservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/testservice/v1/service_pb2_grpc.pyi @@ -23,9 +23,12 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import abc + import google.protobuf.empty_pb2 import grpc + import temporalio.api.testservice.v1.request_response_pb2 class TestServiceStub: diff --git a/temporalio/api/update/v1/message_pb2.py b/temporalio/api/update/v1/message_pb2.py index 932284d7..badea1dd 100644 --- a/temporalio/api/update/v1/message_pb2.py +++ b/temporalio/api/update/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/update/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -42,7 +43,7 @@ (_message.Message,), { "DESCRIPTOR": _WAITPOLICY, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.WaitPolicy) }, ) @@ -53,7 +54,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEREF, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.UpdateRef) }, ) @@ -64,7 +65,7 @@ (_message.Message,), { "DESCRIPTOR": _OUTCOME, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Outcome) }, ) @@ -75,7 +76,7 @@ (_message.Message,), { "DESCRIPTOR": _META, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Meta) }, ) @@ -86,7 +87,7 @@ (_message.Message,), { "DESCRIPTOR": _INPUT, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Input) }, ) @@ -97,7 +98,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUEST, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Request) }, ) @@ -108,7 +109,7 @@ (_message.Message,), { "DESCRIPTOR": _REJECTION, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Rejection) }, ) @@ -119,7 +120,7 @@ (_message.Message,), { "DESCRIPTOR": _ACCEPTANCE, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Acceptance) }, ) @@ -130,7 +131,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONSE, - "__module__": "temporal.api.update.v1.message_pb2" + "__module__": "temporal.api.update.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.update.v1.Response) }, ) diff --git a/temporalio/api/update/v1/message_pb2.pyi b/temporalio/api/update/v1/message_pb2.pyi index 4ddae556..ddfe76b1 100644 --- a/temporalio/api/update/v1/message_pb2.pyi +++ b/temporalio/api/update/v1/message_pb2.pyi @@ -23,10 +23,13 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.update_pb2 import temporalio.api.failure.v1.message_pb2 diff --git a/temporalio/api/version/v1/message_pb2.py b/temporalio/api/version/v1/message_pb2.py index fb56467f..de0b7a6c 100644 --- a/temporalio/api/version/v1/message_pb2.py +++ b/temporalio/api/version/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/version/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -32,7 +33,7 @@ (_message.Message,), { "DESCRIPTOR": _RELEASEINFO, - "__module__": "temporal.api.version.v1.message_pb2" + "__module__": "temporal.api.version.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.version.v1.ReleaseInfo) }, ) @@ -43,7 +44,7 @@ (_message.Message,), { "DESCRIPTOR": _ALERT, - "__module__": "temporal.api.version.v1.message_pb2" + "__module__": "temporal.api.version.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.version.v1.Alert) }, ) @@ -54,7 +55,7 @@ (_message.Message,), { "DESCRIPTOR": _VERSIONINFO, - "__module__": "temporal.api.version.v1.message_pb2" + "__module__": "temporal.api.version.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.version.v1.VersionInfo) }, ) diff --git a/temporalio/api/version/v1/message_pb2.pyi b/temporalio/api/version/v1/message_pb2.pyi index 3171fb89..f1722e11 100644 --- a/temporalio/api/version/v1/message_pb2.pyi +++ b/temporalio/api/version/v1/message_pb2.pyi @@ -23,13 +23,16 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.enums.v1.common_pb2 if sys.version_info >= (3, 8): diff --git a/temporalio/api/workflow/v1/message_pb2.py b/temporalio/api/workflow/v1/message_pb2.py index 69fecff6..442e6879 100644 --- a/temporalio/api/workflow/v1/message_pb2.py +++ b/temporalio/api/workflow/v1/message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/workflow/v1/message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -65,7 +66,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionInfo) }, ) @@ -76,7 +77,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWEXECUTIONCONFIG, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.WorkflowExecutionConfig) }, ) @@ -87,7 +88,7 @@ (_message.Message,), { "DESCRIPTOR": _PENDINGACTIVITYINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingActivityInfo) }, ) @@ -98,7 +99,7 @@ (_message.Message,), { "DESCRIPTOR": _PENDINGCHILDEXECUTIONINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingChildExecutionInfo) }, ) @@ -109,7 +110,7 @@ (_message.Message,), { "DESCRIPTOR": _PENDINGWORKFLOWTASKINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingWorkflowTaskInfo) }, ) @@ -120,7 +121,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETPOINTS, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.ResetPoints) }, ) @@ -131,7 +132,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETPOINTINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.ResetPointInfo) }, ) @@ -142,7 +143,7 @@ (_message.Message,), { "DESCRIPTOR": _NEWWORKFLOWEXECUTIONINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.NewWorkflowExecutionInfo) }, ) @@ -157,7 +158,7 @@ (_message.Message,), { "DESCRIPTOR": _CALLBACKINFO_WORKFLOWCLOSED, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.WorkflowClosed) }, ), @@ -166,12 +167,12 @@ (_message.Message,), { "DESCRIPTOR": _CALLBACKINFO_TRIGGER, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo.Trigger) }, ), "DESCRIPTOR": _CALLBACKINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.CallbackInfo) }, ) @@ -184,7 +185,7 @@ (_message.Message,), { "DESCRIPTOR": _PENDINGNEXUSOPERATIONINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.PendingNexusOperationInfo) }, ) @@ -195,7 +196,7 @@ (_message.Message,), { "DESCRIPTOR": _NEXUSOPERATIONCANCELLATIONINFO, - "__module__": "temporal.api.workflow.v1.message_pb2" + "__module__": "temporal.api.workflow.v1.message_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflow.v1.NexusOperationCancellationInfo) }, ) diff --git a/temporalio/api/workflow/v1/message_pb2.pyi b/temporalio/api/workflow/v1/message_pb2.pyi index a1857d5e..e1001b12 100644 --- a/temporalio/api/workflow/v1/message_pb2.pyi +++ b/temporalio/api/workflow/v1/message_pb2.pyi @@ -23,15 +23,18 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import builtins import collections.abc +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.empty_pb2 import google.protobuf.internal.containers import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.common_pb2 import temporalio.api.enums.v1.workflow_pb2 @@ -470,7 +473,9 @@ class PendingChildExecutionInfo(google.protobuf.message.Message): run_id: builtins.str workflow_type_name: builtins.str initiated_id: builtins.int - parent_close_policy: temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + parent_close_policy: ( + temporalio.api.enums.v1.workflow_pb2.ParentClosePolicy.ValueType + ) """Default: PARENT_CLOSE_POLICY_TERMINATE.""" def __init__( self, @@ -689,7 +694,9 @@ class NewWorkflowExecutionInfo(google.protobuf.message.Message): @property def workflow_task_timeout(self) -> google.protobuf.duration_pb2.Duration: """Timeout of a single workflow task.""" - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.""" @property def retry_policy(self) -> temporalio.api.common.v1.message_pb2.RetryPolicy: diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.py b/temporalio/api/workflowservice/v1/request_response_pb2.py index bc7d253e..6d4b1064 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/workflowservice/v1/request_response.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -511,12 +512,12 @@ (_message.Message,), { "DESCRIPTOR": _REGISTERNAMESPACEREQUEST_DATAENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry) }, ), "DESCRIPTOR": _REGISTERNAMESPACEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceRequest) }, ) @@ -528,7 +529,7 @@ (_message.Message,), { "DESCRIPTOR": _REGISTERNAMESPACERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RegisterNamespaceResponse) }, ) @@ -539,7 +540,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTNAMESPACESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNamespacesRequest) }, ) @@ -550,7 +551,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTNAMESPACESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListNamespacesResponse) }, ) @@ -561,7 +562,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBENAMESPACEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNamespaceRequest) }, ) @@ -572,7 +573,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBENAMESPACERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeNamespaceResponse) }, ) @@ -583,7 +584,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATENAMESPACEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateNamespaceRequest) }, ) @@ -594,7 +595,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATENAMESPACERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateNamespaceResponse) }, ) @@ -605,7 +606,7 @@ (_message.Message,), { "DESCRIPTOR": _DEPRECATENAMESPACEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeprecateNamespaceRequest) }, ) @@ -616,7 +617,7 @@ (_message.Message,), { "DESCRIPTOR": _DEPRECATENAMESPACERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeprecateNamespaceResponse) }, ) @@ -627,7 +628,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) }, ) @@ -638,7 +639,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionResponse) }, ) @@ -649,7 +650,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest) }, ) @@ -660,7 +661,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse) }, ) @@ -671,7 +672,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREVERSEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest) }, ) @@ -682,7 +683,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse) }, ) @@ -693,7 +694,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWTASKQUEUEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest) }, ) @@ -708,12 +709,12 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry) }, ), "DESCRIPTOR": _POLLWORKFLOWTASKQUEUERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse) }, ) @@ -729,12 +730,12 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry) }, ), "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest) }, ) @@ -746,7 +747,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse) }, ) @@ -757,7 +758,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDWORKFLOWTASKFAILEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest) }, ) @@ -768,7 +769,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDWORKFLOWTASKFAILEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse) }, ) @@ -779,7 +780,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLACTIVITYTASKQUEUEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityTaskQueueRequest) }, ) @@ -790,7 +791,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLACTIVITYTASKQUEUERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollActivityTaskQueueResponse) }, ) @@ -801,7 +802,7 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest) }, ) @@ -812,7 +813,7 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse) }, ) @@ -823,7 +824,7 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest) }, ) @@ -834,7 +835,7 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse) }, ) @@ -845,7 +846,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest) }, ) @@ -856,7 +857,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse) }, ) @@ -867,7 +868,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest) }, ) @@ -878,7 +879,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse) }, ) @@ -889,7 +890,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest) }, ) @@ -900,7 +901,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse) }, ) @@ -911,7 +912,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDBYIDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest) }, ) @@ -922,7 +923,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse) }, ) @@ -933,7 +934,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest) }, ) @@ -944,7 +945,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse) }, ) @@ -955,7 +956,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest) }, ) @@ -966,7 +967,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse) }, ) @@ -977,7 +978,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest) }, ) @@ -988,7 +989,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse) }, ) @@ -999,7 +1000,7 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest) }, ) @@ -1010,7 +1011,7 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse) }, ) @@ -1021,7 +1022,7 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest) }, ) @@ -1032,7 +1033,7 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse) }, ) @@ -1043,7 +1044,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest) }, ) @@ -1054,7 +1055,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse) }, ) @@ -1065,7 +1066,7 @@ (_message.Message,), { "DESCRIPTOR": _TERMINATEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest) }, ) @@ -1076,7 +1077,7 @@ (_message.Message,), { "DESCRIPTOR": _TERMINATEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse) }, ) @@ -1087,7 +1088,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest) }, ) @@ -1098,7 +1099,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse) }, ) @@ -1109,7 +1110,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTOPENWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest) }, ) @@ -1120,7 +1121,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTOPENWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse) }, ) @@ -1131,7 +1132,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest) }, ) @@ -1142,7 +1143,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse) }, ) @@ -1153,7 +1154,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest) }, ) @@ -1164,7 +1165,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse) }, ) @@ -1175,7 +1176,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest) }, ) @@ -1186,7 +1187,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse) }, ) @@ -1197,7 +1198,7 @@ (_message.Message,), { "DESCRIPTOR": _SCANWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest) }, ) @@ -1208,7 +1209,7 @@ (_message.Message,), { "DESCRIPTOR": _SCANWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse) }, ) @@ -1219,7 +1220,7 @@ (_message.Message,), { "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest) }, ) @@ -1234,12 +1235,12 @@ (_message.Message,), { "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup) }, ), "DESCRIPTOR": _COUNTWORKFLOWEXECUTIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse) }, ) @@ -1251,7 +1252,7 @@ (_message.Message,), { "DESCRIPTOR": _GETSEARCHATTRIBUTESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesRequest) }, ) @@ -1266,12 +1267,12 @@ (_message.Message,), { "DESCRIPTOR": _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry) }, ), "DESCRIPTOR": _GETSEARCHATTRIBUTESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSearchAttributesResponse) }, ) @@ -1283,7 +1284,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDQUERYTASKCOMPLETEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest) }, ) @@ -1294,7 +1295,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDQUERYTASKCOMPLETEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse) }, ) @@ -1305,7 +1306,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETSTICKYTASKQUEUEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest) }, ) @@ -1316,7 +1317,7 @@ (_message.Message,), { "DESCRIPTOR": _RESETSTICKYTASKQUEUERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse) }, ) @@ -1327,7 +1328,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYWORKFLOWREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.QueryWorkflowRequest) }, ) @@ -1338,7 +1339,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYWORKFLOWRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.QueryWorkflowResponse) }, ) @@ -1349,7 +1350,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest) }, ) @@ -1360,7 +1361,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse) }, ) @@ -1371,7 +1372,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBETASKQUEUEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueRequest) }, ) @@ -1386,12 +1387,12 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntry) }, ), "DESCRIPTOR": _DESCRIBETASKQUEUERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeTaskQueueResponse) }, ) @@ -1403,7 +1404,7 @@ (_message.Message,), { "DESCRIPTOR": _GETCLUSTERINFOREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoRequest) }, ) @@ -1418,12 +1419,12 @@ (_message.Message,), { "DESCRIPTOR": _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry) }, ), "DESCRIPTOR": _GETCLUSTERINFORESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetClusterInfoResponse) }, ) @@ -1435,7 +1436,7 @@ (_message.Message,), { "DESCRIPTOR": _GETSYSTEMINFOREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoRequest) }, ) @@ -1450,12 +1451,12 @@ (_message.Message,), { "DESCRIPTOR": _GETSYSTEMINFORESPONSE_CAPABILITIES, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities) }, ), "DESCRIPTOR": _GETSYSTEMINFORESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetSystemInfoResponse) }, ) @@ -1467,7 +1468,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTTASKQUEUEPARTITIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest) }, ) @@ -1478,7 +1479,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTTASKQUEUEPARTITIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse) }, ) @@ -1489,7 +1490,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATESCHEDULEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateScheduleRequest) }, ) @@ -1500,7 +1501,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATESCHEDULERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.CreateScheduleResponse) }, ) @@ -1511,7 +1512,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBESCHEDULEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeScheduleRequest) }, ) @@ -1522,7 +1523,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBESCHEDULERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeScheduleResponse) }, ) @@ -1533,7 +1534,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATESCHEDULEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateScheduleRequest) }, ) @@ -1544,7 +1545,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATESCHEDULERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateScheduleResponse) }, ) @@ -1555,7 +1556,7 @@ (_message.Message,), { "DESCRIPTOR": _PATCHSCHEDULEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PatchScheduleRequest) }, ) @@ -1566,7 +1567,7 @@ (_message.Message,), { "DESCRIPTOR": _PATCHSCHEDULERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PatchScheduleResponse) }, ) @@ -1577,7 +1578,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSCHEDULEMATCHINGTIMESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest) }, ) @@ -1588,7 +1589,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSCHEDULEMATCHINGTIMESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse) }, ) @@ -1599,7 +1600,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETESCHEDULEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteScheduleRequest) }, ) @@ -1610,7 +1611,7 @@ (_message.Message,), { "DESCRIPTOR": _DELETESCHEDULERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DeleteScheduleResponse) }, ) @@ -1621,7 +1622,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSCHEDULESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListSchedulesRequest) }, ) @@ -1632,7 +1633,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTSCHEDULESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListSchedulesResponse) }, ) @@ -1647,7 +1648,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion) }, ), @@ -1656,12 +1657,12 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets) }, ), "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest) }, ) @@ -1674,7 +1675,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse) }, ) @@ -1685,7 +1686,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERBUILDIDCOMPATIBILITYREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest) }, ) @@ -1696,7 +1697,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERBUILDIDCOMPATIBILITYRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse) }, ) @@ -1711,7 +1712,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRule) }, ), @@ -1720,7 +1721,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRule) }, ), @@ -1729,7 +1730,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRule) }, ), @@ -1738,7 +1739,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRule) }, ), @@ -1747,7 +1748,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRule) }, ), @@ -1756,7 +1757,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRule) }, ), @@ -1765,12 +1766,12 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildId) }, ), "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest) }, ) @@ -1794,7 +1795,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKERVERSIONINGRULESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesResponse) }, ) @@ -1805,7 +1806,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERVERSIONINGRULESREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesRequest) }, ) @@ -1816,7 +1817,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERVERSIONINGRULESRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerVersioningRulesResponse) }, ) @@ -1827,7 +1828,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERTASKREACHABILITYREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest) }, ) @@ -1838,7 +1839,7 @@ (_message.Message,), { "DESCRIPTOR": _GETWORKERTASKREACHABILITYRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse) }, ) @@ -1849,7 +1850,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest) }, ) @@ -1860,7 +1861,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATEWORKFLOWEXECUTIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse) }, ) @@ -1871,7 +1872,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTBATCHOPERATIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartBatchOperationRequest) }, ) @@ -1882,7 +1883,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTBATCHOPERATIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartBatchOperationResponse) }, ) @@ -1893,7 +1894,7 @@ (_message.Message,), { "DESCRIPTOR": _STOPBATCHOPERATIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StopBatchOperationRequest) }, ) @@ -1904,7 +1905,7 @@ (_message.Message,), { "DESCRIPTOR": _STOPBATCHOPERATIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StopBatchOperationResponse) }, ) @@ -1915,7 +1916,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBEBATCHOPERATIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeBatchOperationRequest) }, ) @@ -1926,7 +1927,7 @@ (_message.Message,), { "DESCRIPTOR": _DESCRIBEBATCHOPERATIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.DescribeBatchOperationResponse) }, ) @@ -1937,7 +1938,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTBATCHOPERATIONSREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListBatchOperationsRequest) }, ) @@ -1948,7 +1949,7 @@ (_message.Message,), { "DESCRIPTOR": _LISTBATCHOPERATIONSRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ListBatchOperationsResponse) }, ) @@ -1959,7 +1960,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWEXECUTIONUPDATEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest) }, ) @@ -1970,7 +1971,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWEXECUTIONUPDATERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse) }, ) @@ -1981,7 +1982,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLNEXUSTASKQUEUEREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueRequest) }, ) @@ -1992,7 +1993,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLNEXUSTASKQUEUERESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.PollNexusTaskQueueResponse) }, ) @@ -2003,7 +2004,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedRequest) }, ) @@ -2014,7 +2015,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDNEXUSTASKCOMPLETEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskCompletedResponse) }, ) @@ -2025,7 +2026,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedRequest) }, ) @@ -2036,7 +2037,7 @@ (_message.Message,), { "DESCRIPTOR": _RESPONDNEXUSTASKFAILEDRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.RespondNexusTaskFailedResponse) }, ) @@ -2051,12 +2052,12 @@ (_message.Message,), { "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST_OPERATION, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation) }, ), "DESCRIPTOR": _EXECUTEMULTIOPERATIONREQUEST, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationRequest) }, ) @@ -2072,12 +2073,12 @@ (_message.Message,), { "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response) }, ), "DESCRIPTOR": _EXECUTEMULTIOPERATIONRESPONSE, - "__module__": "temporal.api.workflowservice.v1.request_response_pb2" + "__module__": "temporal.api.workflowservice.v1.request_response_pb2", # @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.ExecuteMultiOperationResponse) }, ) @@ -2311,9 +2312,7 @@ _LISTSCHEDULESRESPONSE._serialized_end = 21653 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 21656 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 22302 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = ( - 22103 - ) + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 22103 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_end = ( 22214 ) @@ -2327,42 +2326,24 @@ _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 22583 _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 22586 _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 24303 - _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = ( - 23638 - ) + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 23638 _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_end = ( 23751 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = ( - 23754 - ) + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 23754 _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_end = ( 23883 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = ( - 23885 - ) + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 23885 _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_end = ( 23949 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( - 23951 - ) - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( - 24057 - ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( - 24059 - ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( - 24169 - ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = ( - 24171 - ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = ( - 24233 - ) + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 23951 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24057 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 24059 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24169 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 24171 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 24233 _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 24235 _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 24290 _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 24306 diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.pyi b/temporalio/api/workflowservice/v1/request_response_pb2.pyi index facb5d4b..ad838aeb 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2.pyi @@ -23,14 +23,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + 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 sys + import temporalio.api.batch.v1.message_pb2 import temporalio.api.command.v1.message_pb2 import temporalio.api.common.v1.message_pb2 @@ -121,10 +124,14 @@ class RegisterNamespaceRequest(google.protobuf.message.Message): """A key-value map for any customized purpose.""" security_token: builtins.str is_global_namespace: builtins.bool - history_archival_state: temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + history_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" history_archival_uri: builtins.str - visibility_archival_state: temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + visibility_archival_state: ( + temporalio.api.enums.v1.namespace_pb2.ArchivalState.ValueType + ) """If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.""" visibility_archival_uri: builtins.str def __init__( @@ -574,13 +581,17 @@ class StartWorkflowExecutionRequest(google.protobuf.message.Message): """The identity of the client who initiated this request""" request_id: builtins.str """A unique identifier for this start request. Typically UUIDv4.""" - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """Defines whether to allow re-using the workflow id from a previously *closed* workflow. The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. See `workflow_id_conflict_policy` for handling a workflow id duplication with a *running* workflow. """ - workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + workflow_id_conflict_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + ) """Defines how to resolve a workflow id conflict with a *running* workflow. The default policy is WORKFLOW_ID_CONFLICT_POLICY_FAIL. @@ -823,7 +834,9 @@ class GetWorkflowExecutionHistoryRequest(google.protobuf.message.Message): """If set to true, the RPC call will not resolve until there is a new event which matches the `history_event_filter_type`, or a timeout is hit. """ - history_event_filter_type: temporalio.api.enums.v1.workflow_pb2.HistoryEventFilterType.ValueType + history_event_filter_type: ( + temporalio.api.enums.v1.workflow_pb2.HistoryEventFilterType.ValueType + ) """Filter returned events such that they match the specified filter type. Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT. """ @@ -2621,13 +2634,17 @@ class SignalWithStartWorkflowExecutionRequest(google.protobuf.message.Message): """The identity of the worker/client""" request_id: builtins.str """Used to de-dupe signal w/ start requests""" - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """Defines whether to allow re-using the workflow id from a previously *closed* workflow. The default policy is WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. See `workflow_id_reuse_policy` for handling a workflow id duplication with a *running* workflow. """ - workflow_id_conflict_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + workflow_id_conflict_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdConflictPolicy.ValueType + ) """Defines how to resolve a workflow id conflict with a *running* workflow. The default policy is WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING. Note that WORKFLOW_ID_CONFLICT_POLICY_FAIL is an invalid option. @@ -3672,7 +3689,9 @@ class QueryWorkflowRequest(google.protobuf.message.Message): def execution(self) -> temporalio.api.common.v1.message_pb2.WorkflowExecution: ... @property def query(self) -> temporalio.api.query.v1.message_pb2.WorkflowQuery: ... - query_reject_condition: temporalio.api.enums.v1.query_pb2.QueryRejectCondition.ValueType + query_reject_condition: ( + temporalio.api.enums.v1.query_pb2.QueryRejectCondition.ValueType + ) """QueryRejectCondition can used to reject the query if workflow state does not satisfy condition. Default: QUERY_REJECT_CONDITION_NONE. """ @@ -6064,7 +6083,9 @@ class DescribeBatchOperationResponse(google.protobuf.message.Message): FAILURE_OPERATION_COUNT_FIELD_NUMBER: builtins.int IDENTITY_FIELD_NUMBER: builtins.int REASON_FIELD_NUMBER: builtins.int - operation_type: temporalio.api.enums.v1.batch_operation_pb2.BatchOperationType.ValueType + operation_type: ( + temporalio.api.enums.v1.batch_operation_pb2.BatchOperationType.ValueType + ) """Batch operation type""" job_id: builtins.str """Batch job ID""" diff --git a/temporalio/api/workflowservice/v1/request_response_pb2_grpc.py b/temporalio/api/workflowservice/v1/request_response_pb2_grpc.py index 8a939394..bf947056 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2_grpc.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc diff --git a/temporalio/api/workflowservice/v1/service_pb2.py b/temporalio/api/workflowservice/v1/service_pb2.py index 0a03ef51..386d8c3f 100644 --- a/temporalio/api/workflowservice/v1/service_pb2.py +++ b/temporalio/api/workflowservice/v1/service_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/api/workflowservice/v1/service.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message diff --git a/temporalio/api/workflowservice/v1/service_pb2.pyi b/temporalio/api/workflowservice/v1/service_pb2.pyi index 7f4bb335..39652214 100644 --- a/temporalio/api/workflowservice/v1/service_pb2.pyi +++ b/temporalio/api/workflowservice/v1/service_pb2.pyi @@ -23,6 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import google.protobuf.descriptor DESCRIPTOR: google.protobuf.descriptor.FileDescriptor diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.py b/temporalio/api/workflowservice/v1/service_pb2_grpc.py index fabda440..69db51fa 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.py +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.py @@ -1,5 +1,6 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc from temporalio.api.workflowservice.v1 import ( diff --git a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi index 51c6e53d..712a9f0b 100644 --- a/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi +++ b/temporalio/api/workflowservice/v1/service_pb2_grpc.pyi @@ -23,8 +23,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ + import abc + import grpc + import temporalio.api.workflowservice.v1.request_response_pb2 class WorkflowServiceStub: @@ -689,9 +692,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeprecateNamespaceResponse: """DeprecateNamespace is used to update the state of a registered namespace to DEPRECATED. Once the namespace is deprecated it cannot be used to start new workflow executions. Existing @@ -706,9 +707,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartWorkflowExecutionResponse: """StartWorkflowExecution starts a new workflow execution. It will create the execution with a `WORKFLOW_EXECUTION_STARTED` event in its history and @@ -720,9 +719,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ExecuteMultiOperationResponse: """ExecuteMultiOperation executes multiple operations within a single workflow. Operations are started atomically, meaning if *any* operation fails to be started, none are, @@ -738,9 +735,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryResponse: """GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with `NotFound` if the specified workflow execution is unknown to the service. """ @@ -749,9 +744,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkflowExecutionHistoryReverseResponse: """GetWorkflowExecutionHistoryReverse returns the history of specified workflow execution in reverse order (starting from last event). Fails with`NotFound` if the specified workflow execution is unknown to the service. @@ -761,9 +754,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowTaskQueueResponse: """PollWorkflowTaskQueue is called by workers to make progress on workflows. A WorkflowTask is dispatched to callers for active workflow executions with pending workflow @@ -779,9 +770,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskCompletedResponse: """RespondWorkflowTaskCompleted is called by workers to successfully complete workflow tasks they received from `PollWorkflowTaskQueue`. @@ -797,9 +786,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondWorkflowTaskFailedResponse: """RespondWorkflowTaskFailed is called by workers to indicate the processing of a workflow task failed. @@ -818,9 +805,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollActivityTaskQueueResponse: """PollActivityTaskQueue is called by workers to process activity tasks from a specific task queue. @@ -842,9 +827,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatResponse: """RecordActivityTaskHeartbeat is optionally called by workers while they execute activities. If worker fails to heartbeat within the `heartbeat_timeout` interval for the activity task, @@ -857,9 +840,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RecordActivityTaskHeartbeatByIdResponse: """See `RecordActivityTaskHeartbeat`. This version allows clients to record heartbeats by namespace/workflow id/activity id instead of task token. @@ -871,9 +852,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedResponse: """RespondActivityTaskCompleted is called by workers when they successfully complete an activity task. @@ -886,9 +865,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCompletedByIdResponse: """See `RecordActivityTaskCompleted`. This version allows clients to record completions by namespace/workflow id/activity id instead of task token. @@ -900,9 +877,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedResponse: """RespondActivityTaskFailed is called by workers when processing an activity task fails. This results in a new `ACTIVITY_TASK_FAILED` event being written to the workflow history and @@ -914,9 +889,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskFailedByIdResponse: """See `RecordActivityTaskFailed`. This version allows clients to record failures by namespace/workflow id/activity id instead of task token. @@ -928,9 +901,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledResponse: """RespondActivityTaskFailed is called by workers when processing an activity task fails. This results in a new `ACTIVITY_TASK_CANCELED` event being written to the workflow history @@ -942,9 +913,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondActivityTaskCanceledByIdResponse: """See `RecordActivityTaskCanceled`. This version allows clients to record failures by namespace/workflow id/activity id instead of task token. @@ -956,9 +925,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RequestCancelWorkflowExecutionResponse: """RequestCancelWorkflowExecution is called by workers when they want to request cancellation of a workflow execution. @@ -971,9 +938,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWorkflowExecutionResponse: """SignalWorkflowExecution is used to send a signal to a running workflow execution. This results in a `WORKFLOW_EXECUTION_SIGNALED` event recorded in the history and a workflow @@ -984,9 +949,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.SignalWithStartWorkflowExecutionResponse: """SignalWithStartWorkflowExecution is used to ensure a signal is sent to a workflow, even if it isn't yet started. @@ -1005,9 +968,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetWorkflowExecutionResponse: """ResetWorkflowExecution will reset an existing workflow execution to a specified `WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current execution instance. @@ -1018,9 +979,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.TerminateWorkflowExecutionResponse: """TerminateWorkflowExecution terminates an existing workflow execution by recording a `WORKFLOW_EXECUTION_TERMINATED` event in the history and immediately terminating the execution instance. @@ -1030,9 +989,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DeleteWorkflowExecutionResponse: """DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution (when WorkflowExecution.run_id is provided) or the latest Workflow Execution (when WorkflowExecution.run_id is not provided). If the Workflow Execution is Running, it will be @@ -1046,9 +1003,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListOpenWorkflowExecutionsResponse: """ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific namespace. (-- api-linter: core::0127::http-annotation=disabled @@ -1059,9 +1014,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListClosedWorkflowExecutionsResponse: """ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific namespace. (-- api-linter: core::0127::http-annotation=disabled @@ -1072,27 +1025,21 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListWorkflowExecutionsResponse: """ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace.""" @abc.abstractmethod def ListArchivedWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListArchivedWorkflowExecutionsResponse: """ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace.""" @abc.abstractmethod def ScanWorkflowExecutions( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ScanWorkflowExecutionsResponse: """ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order. (-- api-linter: core::0127::http-annotation=disabled @@ -1103,18 +1050,14 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.CountWorkflowExecutionsResponse: """CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.""" @abc.abstractmethod def GetSearchAttributes( self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetSearchAttributesResponse: """GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs (-- api-linter: core::0127::http-annotation=disabled @@ -1125,9 +1068,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondQueryTaskCompletedResponse: """RespondQueryTaskCompleted is called by workers to complete queries which were delivered on the `query` (not `queries`) field of a `PollWorkflowTaskQueueResponse`. @@ -1142,9 +1083,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ResetStickyTaskQueueResponse: """ResetStickyTaskQueue resets the sticky task queue related information in the mutable state of a given workflow. This is prudent for workers to perform if a workflow has been paged out of their cache. @@ -1168,9 +1107,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeWorkflowExecutionResponse: """DescribeWorkflowExecution returns information about the specified workflow execution.""" @abc.abstractmethod def DescribeTaskQueue( @@ -1204,9 +1141,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListTaskQueuePartitionsResponse: """(-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose this low-level API to HTTP. --) """ @@ -1245,9 +1180,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListScheduleMatchingTimesResponse: """Lists matching times within a range.""" @abc.abstractmethod def DeleteSchedule( @@ -1268,9 +1201,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerBuildIdCompatibilityResponse: """Deprecated. Use `UpdateWorkerVersioningRules`. Allows users to specify sets of worker build id versions on a per task queue basis. Versions @@ -1294,9 +1225,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerBuildIdCompatibilityResponse: """Deprecated. Use `GetWorkerVersioningRules`. Fetches the worker build id versioning sets for a task queue. """ @@ -1305,9 +1234,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkerVersioningRulesResponse: """Use this API to manage Worker Versioning Rules for a given Task Queue. There are two types of rules: Build ID Assignment rules and Compatible Build ID Redirect rules. @@ -1337,9 +1264,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerVersioningRulesResponse: """Fetches the Build ID assignment and redirect rules for a Task Queue. WARNING: Worker Versioning is not yet stable and the API and behavior may change incompatibly. """ @@ -1348,9 +1273,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.GetWorkerTaskReachabilityResponse: """Deprecated. Use `DescribeTaskQueue`. Fetches task reachability to determine whether a worker may be retired. @@ -1371,18 +1294,14 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.UpdateWorkflowExecutionResponse: """Invokes the specified update function on user workflow code.""" @abc.abstractmethod def PollWorkflowExecutionUpdate( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollWorkflowExecutionUpdateResponse: """Polls a workflow execution for the outcome of a workflow execution update previously issued through the UpdateWorkflowExecution RPC. The effective timeout on this call will be shorter of the the caller-supplied gRPC @@ -1396,45 +1315,35 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.StartBatchOperationResponse: """StartBatchOperation starts a new batch operation""" @abc.abstractmethod def StopBatchOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.StopBatchOperationResponse: """StopBatchOperation stops a batch operation""" @abc.abstractmethod def DescribeBatchOperation( self, request: temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.DescribeBatchOperationResponse: """DescribeBatchOperation returns the information about a batch operation""" @abc.abstractmethod def ListBatchOperations( self, request: temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.ListBatchOperationsResponse: """ListBatchOperations returns a list of batch operations""" @abc.abstractmethod def PollNexusTaskQueue( self, request: temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.PollNexusTaskQueueResponse: """PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) @@ -1444,9 +1353,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskCompletedResponse: """RespondNexusTaskCompleted is called by workers to respond to Nexus tasks received via PollNexusTaskQueue. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) @@ -1456,9 +1363,7 @@ class WorkflowServiceServicer(metaclass=abc.ABCMeta): self, request: temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedRequest, context: grpc.ServicerContext, - ) -> ( - temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse - ): + ) -> temporalio.api.workflowservice.v1.request_response_pb2.RespondNexusTaskFailedResponse: """RespondNexusTaskFailed is called by workers to fail Nexus tasks received via PollNexusTaskQueue. (-- api-linter: core::0127::http-annotation=disabled aip.dev/not-precedent: We do not expose worker API to HTTP. --) diff --git a/temporalio/bridge/proto/activity_result/activity_result_pb2.py b/temporalio/bridge/proto/activity_result/activity_result_pb2.py index e8237c02..d1ffda85 100644 --- a/temporalio/bridge/proto/activity_result/activity_result_pb2.py +++ b/temporalio/bridge/proto/activity_result/activity_result_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/activity_result/activity_result.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -40,7 +41,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYEXECUTIONRESULT, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.ActivityExecutionResult) }, ) @@ -51,7 +52,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYRESOLUTION, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.ActivityResolution) }, ) @@ -62,7 +63,7 @@ (_message.Message,), { "DESCRIPTOR": _SUCCESS, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.Success) }, ) @@ -73,7 +74,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILURE, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.Failure) }, ) @@ -84,7 +85,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELLATION, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.Cancellation) }, ) @@ -95,7 +96,7 @@ (_message.Message,), { "DESCRIPTOR": _WILLCOMPLETEASYNC, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.WillCompleteAsync) }, ) @@ -106,7 +107,7 @@ (_message.Message,), { "DESCRIPTOR": _DOBACKOFF, - "__module__": "temporal.sdk.core.activity_result.activity_result_pb2" + "__module__": "temporal.sdk.core.activity_result.activity_result_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_result.DoBackoff) }, ) diff --git a/temporalio/bridge/proto/activity_result/activity_result_pb2.pyi b/temporalio/bridge/proto/activity_result/activity_result_pb2.pyi index 9086954e..bae35a91 100644 --- a/temporalio/bridge/proto/activity_result/activity_result_pb2.pyi +++ b/temporalio/bridge/proto/activity_result/activity_result_pb2.pyi @@ -2,12 +2,15 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.failure.v1.message_pb2 diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.py b/temporalio/bridge/proto/activity_task/activity_task_pb2.py index 6675f1fd..7cd6c977 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.py +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/activity_task/activity_task.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -45,7 +46,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASK, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2" + "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_task.ActivityTask) }, ) @@ -60,12 +61,12 @@ (_message.Message,), { "DESCRIPTOR": _START_HEADERFIELDSENTRY, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2" + "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_task.Start.HeaderFieldsEntry) }, ), "DESCRIPTOR": _START, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2" + "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_task.Start) }, ) @@ -77,7 +78,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCEL, - "__module__": "temporal.sdk.core.activity_task.activity_task_pb2" + "__module__": "temporal.sdk.core.activity_task.activity_task_pb2", # @@protoc_insertion_point(class_scope:coresdk.activity_task.Cancel) }, ) diff --git a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi index d0568645..7de4faa3 100644 --- a/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi +++ b/temporalio/bridge/proto/activity_task/activity_task_pb2.pyi @@ -4,17 +4,20 @@ isort:skip_file * Definitions of the different activity tasks returned from [crate::Core::poll_task]. """ + import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/temporalio/bridge/proto/bridge/bridge_pb2.py b/temporalio/bridge/proto/bridge/bridge_pb2.py index 75820bf3..4f6fc2e0 100644 --- a/temporalio/bridge/proto/bridge/bridge_pb2.py +++ b/temporalio/bridge/proto/bridge/bridge_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/bridge/bridge.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -141,7 +142,7 @@ (_message.Message,), { "DESCRIPTOR": _INITTELEMETRYREQUEST_CONSOLELOGGEROPTIONS, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest.ConsoleLoggerOptions) }, ), @@ -150,7 +151,7 @@ (_message.Message,), { "DESCRIPTOR": _INITTELEMETRYREQUEST_FORWARDLOGGEROPTIONS, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest.ForwardLoggerOptions) }, ), @@ -163,12 +164,12 @@ (_message.Message,), { "DESCRIPTOR": _INITTELEMETRYREQUEST_OTELCOLLECTOROPTIONS_HEADERSENTRY, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest.OtelCollectorOptions.HeadersEntry) }, ), "DESCRIPTOR": _INITTELEMETRYREQUEST_OTELCOLLECTOROPTIONS, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest.OtelCollectorOptions) }, ), @@ -177,12 +178,12 @@ (_message.Message,), { "DESCRIPTOR": _INITTELEMETRYREQUEST_PROMETHEUSOPTIONS, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest.PrometheusOptions) }, ), "DESCRIPTOR": _INITTELEMETRYREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitTelemetryRequest) }, ) @@ -202,7 +203,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATECLIENTREQUEST_TLSCONFIG, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CreateClientRequest.TlsConfig) }, ), @@ -211,12 +212,12 @@ (_message.Message,), { "DESCRIPTOR": _CREATECLIENTREQUEST_RETRYCONFIG, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CreateClientRequest.RetryConfig) }, ), "DESCRIPTOR": _CREATECLIENTREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CreateClientRequest) }, ) @@ -233,12 +234,12 @@ (_message.Message,), { "DESCRIPTOR": _INITRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitResponse.Error) }, ), "DESCRIPTOR": _INITRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.InitResponse) }, ) @@ -250,7 +251,7 @@ (_message.Message,), { "DESCRIPTOR": _CREATEWORKERREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CreateWorkerRequest) }, ) @@ -265,12 +266,12 @@ (_message.Message,), { "DESCRIPTOR": _REGISTERWORKERRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RegisterWorkerResponse.Error) }, ), "DESCRIPTOR": _REGISTERWORKERRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RegisterWorkerResponse) }, ) @@ -282,7 +283,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWACTIVATIONREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollWorkflowActivationRequest) }, ) @@ -297,12 +298,12 @@ (_message.Message,), { "DESCRIPTOR": _POLLWORKFLOWACTIVATIONRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollWorkflowActivationResponse.Error) }, ), "DESCRIPTOR": _POLLWORKFLOWACTIVATIONRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollWorkflowActivationResponse) }, ) @@ -314,7 +315,7 @@ (_message.Message,), { "DESCRIPTOR": _POLLACTIVITYTASKREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollActivityTaskRequest) }, ) @@ -329,12 +330,12 @@ (_message.Message,), { "DESCRIPTOR": _POLLACTIVITYTASKRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollActivityTaskResponse.Error) }, ), "DESCRIPTOR": _POLLACTIVITYTASKRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.PollActivityTaskResponse) }, ) @@ -346,7 +347,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEWORKFLOWACTIVATIONREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteWorkflowActivationRequest) }, ) @@ -361,12 +362,12 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEWORKFLOWACTIVATIONRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteWorkflowActivationResponse.Error) }, ), "DESCRIPTOR": _COMPLETEWORKFLOWACTIVATIONRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteWorkflowActivationResponse) }, ) @@ -378,7 +379,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEACTIVITYTASKREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteActivityTaskRequest) }, ) @@ -393,12 +394,12 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEACTIVITYTASKRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteActivityTaskResponse.Error) }, ), "DESCRIPTOR": _COMPLETEACTIVITYTASKRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.CompleteActivityTaskResponse) }, ) @@ -410,7 +411,7 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYHEARTBEATREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RecordActivityHeartbeatRequest) }, ) @@ -425,12 +426,12 @@ (_message.Message,), { "DESCRIPTOR": _RECORDACTIVITYHEARTBEATRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RecordActivityHeartbeatResponse.Error) }, ), "DESCRIPTOR": _RECORDACTIVITYHEARTBEATRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RecordActivityHeartbeatResponse) }, ) @@ -442,7 +443,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTWORKFLOWEVICTIONREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RequestWorkflowEvictionRequest) }, ) @@ -457,12 +458,12 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTWORKFLOWEVICTIONRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RequestWorkflowEvictionResponse.Error) }, ), "DESCRIPTOR": _REQUESTWORKFLOWEVICTIONRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.RequestWorkflowEvictionResponse) }, ) @@ -474,7 +475,7 @@ (_message.Message,), { "DESCRIPTOR": _SHUTDOWNWORKERREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.ShutdownWorkerRequest) }, ) @@ -489,12 +490,12 @@ (_message.Message,), { "DESCRIPTOR": _SHUTDOWNWORKERRESPONSE_ERROR, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.ShutdownWorkerResponse.Error) }, ), "DESCRIPTOR": _SHUTDOWNWORKERRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.ShutdownWorkerResponse) }, ) @@ -506,7 +507,7 @@ (_message.Message,), { "DESCRIPTOR": _FETCHBUFFEREDLOGSREQUEST, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.FetchBufferedLogsRequest) }, ) @@ -521,12 +522,12 @@ (_message.Message,), { "DESCRIPTOR": _FETCHBUFFEREDLOGSRESPONSE_LOGENTRY, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.FetchBufferedLogsResponse.LogEntry) }, ), "DESCRIPTOR": _FETCHBUFFEREDLOGSRESPONSE, - "__module__": "temporal.sdk.core.bridge.bridge_pb2" + "__module__": "temporal.sdk.core.bridge.bridge_pb2", # @@protoc_insertion_point(class_scope:coresdk.bridge.FetchBufferedLogsResponse) }, ) diff --git a/temporalio/bridge/proto/bridge/bridge_pb2.pyi b/temporalio/bridge/proto/bridge/bridge_pb2.pyi index f3745efe..7d429110 100644 --- a/temporalio/bridge/proto/bridge/bridge_pb2.pyi +++ b/temporalio/bridge/proto/bridge/bridge_pb2.pyi @@ -2,8 +2,12 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.containers @@ -11,12 +15,11 @@ import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 import google.protobuf.wrappers_pb2 -import sys + import temporalio.bridge.proto.activity_task.activity_task_pb2 import temporalio.bridge.proto.core_interface_pb2 import temporalio.bridge.proto.workflow_activation.workflow_activation_pb2 import temporalio.bridge.proto.workflow_completion.workflow_completion_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions @@ -614,9 +617,7 @@ class PollWorkflowActivationResponse(google.protobuf.message.Message): @property def activation( self, - ) -> ( - temporalio.bridge.proto.workflow_activation.workflow_activation_pb2.WorkflowActivation - ): ... + ) -> temporalio.bridge.proto.workflow_activation.workflow_activation_pb2.WorkflowActivation: ... @property def error(self) -> global___PollWorkflowActivationResponse.Error: ... def __init__( @@ -716,9 +717,7 @@ class CompleteWorkflowActivationRequest(google.protobuf.message.Message): @property def completion( self, - ) -> ( - temporalio.bridge.proto.workflow_completion.workflow_completion_pb2.WorkflowActivationCompletion - ): ... + ) -> temporalio.bridge.proto.workflow_completion.workflow_completion_pb2.WorkflowActivationCompletion: ... def __init__( self, *, diff --git a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py index 8d3a720c..3dd0afa1 100644 --- a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py +++ b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/child_workflow/child_workflow.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -63,7 +64,7 @@ (_message.Message,), { "DESCRIPTOR": _CHILDWORKFLOWRESULT, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2" + "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", # @@protoc_insertion_point(class_scope:coresdk.child_workflow.ChildWorkflowResult) }, ) @@ -74,7 +75,7 @@ (_message.Message,), { "DESCRIPTOR": _SUCCESS, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2" + "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Success) }, ) @@ -85,7 +86,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILURE, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2" + "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Failure) }, ) @@ -96,7 +97,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELLATION, - "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2" + "__module__": "temporal.sdk.core.child_workflow.child_workflow_pb2", # @@protoc_insertion_point(class_scope:coresdk.child_workflow.Cancellation) }, ) diff --git a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi index 21966c59..a41c5b2b 100644 --- a/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi +++ b/temporalio/bridge/proto/child_workflow/child_workflow_pb2.pyi @@ -2,14 +2,17 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.failure.v1.message_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions @@ -66,8 +69,12 @@ class _StartChildWorkflowExecutionFailedCauseEnumTypeWrapper( builtins.type, ): # noqa: F821 DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: _StartChildWorkflowExecutionFailedCause.ValueType # 0 - START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: _StartChildWorkflowExecutionFailedCause.ValueType # 1 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 0 + START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( + _StartChildWorkflowExecutionFailedCause.ValueType + ) # 1 class StartChildWorkflowExecutionFailedCause( _StartChildWorkflowExecutionFailedCause, @@ -75,8 +82,12 @@ class StartChildWorkflowExecutionFailedCause( ): """Possible causes of failure to start a child workflow""" -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: StartChildWorkflowExecutionFailedCause.ValueType # 0 -START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: StartChildWorkflowExecutionFailedCause.ValueType # 1 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 0 +START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS: ( + StartChildWorkflowExecutionFailedCause.ValueType +) # 1 global___StartChildWorkflowExecutionFailedCause = StartChildWorkflowExecutionFailedCause class _ChildWorkflowCancellationType: diff --git a/temporalio/bridge/proto/common/common_pb2.py b/temporalio/bridge/proto/common/common_pb2.py index e8e7ce36..c18ae6a2 100644 --- a/temporalio/bridge/proto/common/common_pb2.py +++ b/temporalio/bridge/proto/common/common_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/common/common.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -35,7 +36,7 @@ (_message.Message,), { "DESCRIPTOR": _NAMESPACEDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.common.common_pb2" + "__module__": "temporal.sdk.core.common.common_pb2", # @@protoc_insertion_point(class_scope:coresdk.common.NamespacedWorkflowExecution) }, ) diff --git a/temporalio/bridge/proto/common/common_pb2.pyi b/temporalio/bridge/proto/common/common_pb2.pyi index 24055d28..279ed297 100644 --- a/temporalio/bridge/proto/common/common_pb2.pyi +++ b/temporalio/bridge/proto/common/common_pb2.pyi @@ -2,12 +2,14 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/temporalio/bridge/proto/core_interface_pb2.py b/temporalio/bridge/proto/core_interface_pb2.py index eaa2e554..c1caf1cc 100644 --- a/temporalio/bridge/proto/core_interface_pb2.py +++ b/temporalio/bridge/proto/core_interface_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/core_interface.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -54,7 +55,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYHEARTBEAT, - "__module__": "temporal.sdk.core.core_interface_pb2" + "__module__": "temporal.sdk.core.core_interface_pb2", # @@protoc_insertion_point(class_scope:coresdk.ActivityHeartbeat) }, ) @@ -65,7 +66,7 @@ (_message.Message,), { "DESCRIPTOR": _ACTIVITYTASKCOMPLETION, - "__module__": "temporal.sdk.core.core_interface_pb2" + "__module__": "temporal.sdk.core.core_interface_pb2", # @@protoc_insertion_point(class_scope:coresdk.ActivityTaskCompletion) }, ) diff --git a/temporalio/bridge/proto/core_interface_pb2.pyi b/temporalio/bridge/proto/core_interface_pb2.pyi index 0fd5e15b..3d46afea 100644 --- a/temporalio/bridge/proto/core_interface_pb2.pyi +++ b/temporalio/bridge/proto/core_interface_pb2.pyi @@ -2,12 +2,15 @@ @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.internal.containers import google.protobuf.message -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.bridge.proto.activity_result.activity_result_pb2 @@ -59,9 +62,7 @@ class ActivityTaskCompletion(google.protobuf.message.Message): @property def result( self, - ) -> ( - temporalio.bridge.proto.activity_result.activity_result_pb2.ActivityExecutionResult - ): ... + ) -> temporalio.bridge.proto.activity_result.activity_result_pb2.ActivityExecutionResult: ... def __init__( self, *, diff --git a/temporalio/bridge/proto/core_interface_pb2_grpc.py b/temporalio/bridge/proto/core_interface_pb2_grpc.py index 8a939394..bf947056 100644 --- a/temporalio/bridge/proto/core_interface_pb2_grpc.py +++ b/temporalio/bridge/proto/core_interface_pb2_grpc.py @@ -1,3 +1,4 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" + import grpc diff --git a/temporalio/bridge/proto/external_data/external_data_pb2.py b/temporalio/bridge/proto/external_data/external_data_pb2.py index 2785c371..a7e8369b 100644 --- a/temporalio/bridge/proto/external_data/external_data_pb2.py +++ b/temporalio/bridge/proto/external_data/external_data_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/external_data/external_data.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -28,7 +29,7 @@ (_message.Message,), { "DESCRIPTOR": _LOCALACTIVITYMARKERDATA, - "__module__": "temporal.sdk.core.external_data.external_data_pb2" + "__module__": "temporal.sdk.core.external_data.external_data_pb2", # @@protoc_insertion_point(class_scope:coresdk.external_data.LocalActivityMarkerData) }, ) @@ -39,7 +40,7 @@ (_message.Message,), { "DESCRIPTOR": _PATCHEDMARKERDATA, - "__module__": "temporal.sdk.core.external_data.external_data_pb2" + "__module__": "temporal.sdk.core.external_data.external_data_pb2", # @@protoc_insertion_point(class_scope:coresdk.external_data.PatchedMarkerData) }, ) diff --git a/temporalio/bridge/proto/external_data/external_data_pb2.pyi b/temporalio/bridge/proto/external_data/external_data_pb2.pyi index ecd09db4..a1d29e39 100644 --- a/temporalio/bridge/proto/external_data/external_data_pb2.pyi +++ b/temporalio/bridge/proto/external_data/external_data_pb2.pyi @@ -2,12 +2,14 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys if sys.version_info >= (3, 8): import typing as typing_extensions diff --git a/temporalio/bridge/proto/health/v1/health_pb2.py b/temporalio/bridge/proto/health/v1/health_pb2.py index 31c59771..8e31dcec 100644 --- a/temporalio/bridge/proto/health/v1/health_pb2.py +++ b/temporalio/bridge/proto/health/v1/health_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: health/v1/health.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -28,7 +29,7 @@ (_message.Message,), { "DESCRIPTOR": _HEALTHCHECKREQUEST, - "__module__": "health.v1.health_pb2" + "__module__": "health.v1.health_pb2", # @@protoc_insertion_point(class_scope:temporal.grpc.health.v1.HealthCheckRequest) }, ) @@ -39,7 +40,7 @@ (_message.Message,), { "DESCRIPTOR": _HEALTHCHECKRESPONSE, - "__module__": "health.v1.health_pb2" + "__module__": "health.v1.health_pb2", # @@protoc_insertion_point(class_scope:temporal.grpc.health.v1.HealthCheckResponse) }, ) diff --git a/temporalio/bridge/proto/health/v1/health_pb2.pyi b/temporalio/bridge/proto/health/v1/health_pb2.pyi index f3bf6399..2e1121e3 100644 --- a/temporalio/bridge/proto/health/v1/health_pb2.pyi +++ b/temporalio/bridge/proto/health/v1/health_pb2.pyi @@ -2,12 +2,14 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file We have to alter this to prevent gRPC health clash""" + import builtins +import sys +import typing + import google.protobuf.descriptor import google.protobuf.internal.enum_type_wrapper import google.protobuf.message -import sys -import typing if sys.version_info >= (3, 10): import typing as typing_extensions diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py index f38efe8e..68083317 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/workflow_activation/workflow_activation.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -86,7 +87,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWACTIVATION, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.WorkflowActivation) }, ) @@ -97,7 +98,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWACTIVATIONJOB, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.WorkflowActivationJob) }, ) @@ -112,12 +113,12 @@ (_message.Message,), { "DESCRIPTOR": _STARTWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.StartWorkflow.HeadersEntry) }, ), "DESCRIPTOR": _STARTWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.StartWorkflow) }, ) @@ -129,7 +130,7 @@ (_message.Message,), { "DESCRIPTOR": _FIRETIMER, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.FireTimer) }, ) @@ -140,7 +141,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVEACTIVITY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveActivity) }, ) @@ -151,7 +152,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTART, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStart) }, ) @@ -162,7 +163,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTSUCCESS, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartSuccess) }, ) @@ -173,7 +174,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTFAILURE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartFailure) }, ) @@ -184,7 +185,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTIONSTARTCANCELLED, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecutionStartCancelled) }, ) @@ -195,7 +196,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVECHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveChildWorkflowExecution) }, ) @@ -206,7 +207,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATERANDOMSEED, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.UpdateRandomSeed) }, ) @@ -221,12 +222,12 @@ (_message.Message,), { "DESCRIPTOR": _QUERYWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.QueryWorkflow.HeadersEntry) }, ), "DESCRIPTOR": _QUERYWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.QueryWorkflow) }, ) @@ -238,7 +239,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.CancelWorkflow) }, ) @@ -253,12 +254,12 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALWORKFLOW_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.SignalWorkflow.HeadersEntry) }, ), "DESCRIPTOR": _SIGNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.SignalWorkflow) }, ) @@ -270,7 +271,7 @@ (_message.Message,), { "DESCRIPTOR": _NOTIFYHASPATCH, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.NotifyHasPatch) }, ) @@ -281,7 +282,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVESIGNALEXTERNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveSignalExternalWorkflow) }, ) @@ -292,7 +293,7 @@ (_message.Message,), { "DESCRIPTOR": _RESOLVEREQUESTCANCELEXTERNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.ResolveRequestCancelExternalWorkflow) }, ) @@ -307,12 +308,12 @@ (_message.Message,), { "DESCRIPTOR": _DOUPDATE_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.DoUpdate.HeadersEntry) }, ), "DESCRIPTOR": _DOUPDATE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.DoUpdate) }, ) @@ -324,7 +325,7 @@ (_message.Message,), { "DESCRIPTOR": _REMOVEFROMCACHE, - "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2" + "__module__": "temporal.sdk.core.workflow_activation.workflow_activation_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_activation.RemoveFromCache) }, ) diff --git a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi index da781994..7d3944e9 100644 --- a/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi +++ b/temporalio/bridge/proto/workflow_activation/workflow_activation_pb2.pyi @@ -5,15 +5,19 @@ isort:skip_file Definitions of the different workflow activation jobs returned from [crate::Core::poll_task]. The lang SDK applies these activation jobs to drive workflows. """ + import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 @@ -21,7 +25,6 @@ import temporalio.api.update.v1.message_pb2 import temporalio.bridge.proto.activity_result.activity_result_pb2 import temporalio.bridge.proto.child_workflow.child_workflow_pb2 import temporalio.bridge.proto.common.common_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions @@ -434,7 +437,9 @@ class StartWorkflow(google.protobuf.message.Message): """Run id of the previous workflow which continued-as-new or retired or cron executed into this workflow, if any. """ - continued_initiator: temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + continued_initiator: ( + temporalio.api.enums.v1.workflow_pb2.ContinueAsNewInitiator.ValueType + ) """If this workflow was a continuation, indicates the type of continuation.""" @property def continued_failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py index a22b58c9..6f256d9d 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/workflow_commands/workflow_commands.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -116,7 +117,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWCOMMAND, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.WorkflowCommand) }, ) @@ -127,7 +128,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTTIMER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartTimer) }, ) @@ -138,7 +139,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELTIMER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelTimer) }, ) @@ -153,12 +154,12 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULEACTIVITY_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleActivity.HeadersEntry) }, ), "DESCRIPTOR": _SCHEDULEACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleActivity) }, ) @@ -174,12 +175,12 @@ (_message.Message,), { "DESCRIPTOR": _SCHEDULELOCALACTIVITY_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleLocalActivity.HeadersEntry) }, ), "DESCRIPTOR": _SCHEDULELOCALACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ScheduleLocalActivity) }, ) @@ -191,7 +192,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelActivity) }, ) @@ -202,7 +203,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELLOCALACTIVITY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelLocalActivity) }, ) @@ -213,7 +214,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYRESULT, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.QueryResult) }, ) @@ -224,7 +225,7 @@ (_message.Message,), { "DESCRIPTOR": _QUERYSUCCESS, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.QuerySuccess) }, ) @@ -235,7 +236,7 @@ (_message.Message,), { "DESCRIPTOR": _COMPLETEWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CompleteWorkflowExecution) }, ) @@ -246,7 +247,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.FailWorkflowExecution) }, ) @@ -261,7 +262,7 @@ (_message.Message,), { "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION_MEMOENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution.MemoEntry) }, ), @@ -270,7 +271,7 @@ (_message.Message,), { "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution.HeadersEntry) }, ), @@ -279,12 +280,12 @@ (_message.Message,), { "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution.SearchAttributesEntry) }, ), "DESCRIPTOR": _CONTINUEASNEWWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ContinueAsNewWorkflowExecution) }, ) @@ -298,7 +299,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelWorkflowExecution) }, ) @@ -309,7 +310,7 @@ (_message.Message,), { "DESCRIPTOR": _SETPATCHMARKER, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SetPatchMarker) }, ) @@ -324,7 +325,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution.HeadersEntry) }, ), @@ -333,7 +334,7 @@ (_message.Message,), { "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION_MEMOENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution.MemoEntry) }, ), @@ -342,12 +343,12 @@ (_message.Message,), { "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION_SEARCHATTRIBUTESENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution.SearchAttributesEntry) }, ), "DESCRIPTOR": _STARTCHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.StartChildWorkflowExecution) }, ) @@ -361,7 +362,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELCHILDWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelChildWorkflowExecution) }, ) @@ -372,7 +373,7 @@ (_message.Message,), { "DESCRIPTOR": _REQUESTCANCELEXTERNALWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.RequestCancelExternalWorkflowExecution) }, ) @@ -387,12 +388,12 @@ (_message.Message,), { "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTION_HEADERSENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SignalExternalWorkflowExecution.HeadersEntry) }, ), "DESCRIPTOR": _SIGNALEXTERNALWORKFLOWEXECUTION, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.SignalExternalWorkflowExecution) }, ) @@ -404,7 +405,7 @@ (_message.Message,), { "DESCRIPTOR": _CANCELSIGNALWORKFLOW, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.CancelSignalWorkflow) }, ) @@ -419,12 +420,12 @@ (_message.Message,), { "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTES_SEARCHATTRIBUTESENTRY, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.UpsertWorkflowSearchAttributes.SearchAttributesEntry) }, ), "DESCRIPTOR": _UPSERTWORKFLOWSEARCHATTRIBUTES, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.UpsertWorkflowSearchAttributes) }, ) @@ -436,7 +437,7 @@ (_message.Message,), { "DESCRIPTOR": _MODIFYWORKFLOWPROPERTIES, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.ModifyWorkflowProperties) }, ) @@ -447,7 +448,7 @@ (_message.Message,), { "DESCRIPTOR": _UPDATERESPONSE, - "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2" + "__module__": "temporal.sdk.core.workflow_commands.workflow_commands_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_commands.UpdateResponse) }, ) diff --git a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi index 3bea766b..53e8a830 100644 --- a/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi +++ b/temporalio/bridge/proto/workflow_commands/workflow_commands_pb2.pyi @@ -6,8 +6,12 @@ Definitions for commands from a workflow in lang SDK to core. While a workflow p of activation jobs, it accumulates these commands to be sent back to core to conclude that activation. """ + import builtins import collections.abc +import sys +import typing + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.empty_pb2 @@ -15,13 +19,12 @@ import google.protobuf.internal.containers import google.protobuf.internal.enum_type_wrapper import google.protobuf.message import google.protobuf.timestamp_pb2 -import sys + import temporalio.api.common.v1.message_pb2 import temporalio.api.enums.v1.workflow_pb2 import temporalio.api.failure.v1.message_pb2 import temporalio.bridge.proto.child_workflow.child_workflow_pb2 import temporalio.bridge.proto.common.common_pb2 -import typing if sys.version_info >= (3, 10): import typing as typing_extensions @@ -437,7 +440,9 @@ class ScheduleActivity(google.protobuf.message.Message): activity. When unset/default, workers will always attempt to do so if activity execution slots are available. """ - versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) """Whether this activity should run on a worker with a compatible build id or not.""" def __init__( self, @@ -962,7 +967,9 @@ class ContinueAsNewWorkflowExecution(google.protobuf.message.Message): """If set, the new workflow will have this retry policy. If unset, re-uses the current workflow's retry policy. """ - versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) """Whether the continued workflow should run on a worker with a compatible build id or not.""" def __init__( self, @@ -1185,7 +1192,9 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): """Timeout of a single workflow task.""" parent_close_policy: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ParentClosePolicy.ValueType """Default: PARENT_CLOSE_POLICY_TERMINATE.""" - workflow_id_reuse_policy: temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + workflow_id_reuse_policy: ( + temporalio.api.enums.v1.workflow_pb2.WorkflowIdReusePolicy.ValueType + ) """string control = 11; (unused from StartChildWorkflowExecutionCommandAttributes) Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE. """ @@ -1215,7 +1224,9 @@ class StartChildWorkflowExecution(google.protobuf.message.Message): """Search attributes""" cancellation_type: temporalio.bridge.proto.child_workflow.child_workflow_pb2.ChildWorkflowCancellationType.ValueType """Defines behaviour of the underlying workflow when child workflow cancellation has been requested.""" - versioning_intent: temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + versioning_intent: ( + temporalio.bridge.proto.common.common_pb2.VersioningIntent.ValueType + ) """Whether this child should run on a worker with a compatible build id or not.""" def __init__( self, diff --git a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py index b1808e2d..59e73c1f 100644 --- a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py +++ b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temporal/sdk/core/workflow_completion/workflow_completion.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -41,7 +42,7 @@ (_message.Message,), { "DESCRIPTOR": _WORKFLOWACTIVATIONCOMPLETION, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2" + "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.WorkflowActivationCompletion) }, ) @@ -52,7 +53,7 @@ (_message.Message,), { "DESCRIPTOR": _SUCCESS, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2" + "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.Success) }, ) @@ -63,7 +64,7 @@ (_message.Message,), { "DESCRIPTOR": _FAILURE, - "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2" + "__module__": "temporal.sdk.core.workflow_completion.workflow_completion_pb2", # @@protoc_insertion_point(class_scope:coresdk.workflow_completion.Failure) }, ) diff --git a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi index 5113bea9..5568b9ee 100644 --- a/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi +++ b/temporalio/bridge/proto/workflow_completion/workflow_completion_pb2.pyi @@ -2,12 +2,15 @@ @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.internal.containers import google.protobuf.message -import sys + import temporalio.api.enums.v1.failed_cause_pb2 import temporalio.api.failure.v1.message_pb2 import temporalio.bridge.proto.workflow_commands.workflow_commands_pb2 @@ -111,7 +114,9 @@ class Failure(google.protobuf.message.Message): FORCE_CAUSE_FIELD_NUMBER: builtins.int @property def failure(self) -> temporalio.api.failure.v1.message_pb2.Failure: ... - force_cause: temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType + force_cause: ( + temporalio.api.enums.v1.failed_cause_pb2.WorkflowTaskFailedCause.ValueType + ) """Forces overriding the WFT failure cause""" def __init__( self, diff --git a/temporalio/client.py b/temporalio/client.py index 06185cd7..4edbbfca 100644 --- a/temporalio/client.py +++ b/temporalio/client.py @@ -313,8 +313,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> WorkflowHandle[SelfType, ReturnType]: - ... + ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for single-param workflow @overload @@ -344,8 +343,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> WorkflowHandle[SelfType, ReturnType]: - ... + ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for multi-param workflow @overload @@ -377,8 +375,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> WorkflowHandle[SelfType, ReturnType]: - ... + ) -> WorkflowHandle[SelfType, ReturnType]: ... # Overload for string-name workflow @overload @@ -410,8 +407,7 @@ async def start_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> WorkflowHandle[Any, Any]: - ... + ) -> WorkflowHandle[Any, Any]: ... async def start_workflow( self, @@ -556,8 +552,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> ReturnType: - ... + ) -> ReturnType: ... # Overload for single-param workflow @overload @@ -587,8 +582,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> ReturnType: - ... + ) -> ReturnType: ... # Overload for multi-param workflow @overload @@ -620,8 +614,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> ReturnType: - ... + ) -> ReturnType: ... # Overload for string-name workflow @overload @@ -653,8 +646,7 @@ async def execute_workflow( rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, request_eager_start: bool = False, - ) -> Any: - ... + ) -> Any: ... async def execute_workflow( self, @@ -1503,8 +1495,7 @@ async def query( reject_condition: Optional[temporalio.common.QueryRejectCondition] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for single-param query @overload @@ -1516,8 +1507,7 @@ async def query( reject_condition: Optional[temporalio.common.QueryRejectCondition] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for multi-param query @overload @@ -1532,8 +1522,7 @@ async def query( reject_condition: Optional[temporalio.common.QueryRejectCondition] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for string-name query @overload @@ -1547,8 +1536,7 @@ async def query( reject_condition: Optional[temporalio.common.QueryRejectCondition] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> Any: - ... + ) -> Any: ... async def query( self, @@ -1631,8 +1619,7 @@ async def signal( *, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... # Overload for single-param signal @overload @@ -1643,8 +1630,7 @@ async def signal( *, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... # Overload for multi-param signal @overload @@ -1657,8 +1643,7 @@ async def signal( args: Sequence[Any], rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... # Overload for string-name signal @overload @@ -1670,8 +1655,7 @@ async def signal( args: Sequence[Any] = [], rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... async def signal( self, @@ -1768,8 +1752,7 @@ async def execute_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for single-param update @overload @@ -1783,8 +1766,7 @@ async def execute_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for multi-param update @overload @@ -1798,8 +1780,7 @@ async def execute_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> LocalReturnType: - ... + ) -> LocalReturnType: ... # Overload for string-name update @overload @@ -1813,8 +1794,7 @@ async def execute_update( result_type: Optional[Type] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> Any: - ... + ) -> Any: ... async def execute_update( self, @@ -1880,8 +1860,7 @@ async def start_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> WorkflowUpdateHandle[LocalReturnType]: - ... + ) -> WorkflowUpdateHandle[LocalReturnType]: ... # Overload for single-param start update @overload @@ -1896,8 +1875,7 @@ async def start_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> WorkflowUpdateHandle[LocalReturnType]: - ... + ) -> WorkflowUpdateHandle[LocalReturnType]: ... # Overload for multi-param start update @overload @@ -1912,8 +1890,7 @@ async def start_update( id: Optional[str] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> WorkflowUpdateHandle[LocalReturnType]: - ... + ) -> WorkflowUpdateHandle[LocalReturnType]: ... # Overload for string-name start update @overload @@ -1928,8 +1905,7 @@ async def start_update( result_type: Optional[Type] = None, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> WorkflowUpdateHandle[Any]: - ... + ) -> WorkflowUpdateHandle[Any]: ... async def start_update( self, @@ -2318,18 +2294,17 @@ async def memo(self) -> Mapping[str, Any]: @overload async def memo_value( self, key: str, default: Any = temporalio.common._arg_unset - ) -> Any: - ... + ) -> Any: ... @overload - async def memo_value(self, key: str, *, type_hint: Type[ParamType]) -> ParamType: - ... + async def memo_value( + self, key: str, *, type_hint: Type[ParamType] + ) -> ParamType: ... @overload async def memo_value( self, key: str, default: AnyType, *, type_hint: Type[ParamType] - ) -> Union[AnyType, ParamType]: - ... + ) -> Union[AnyType, ParamType]: ... async def memo_value( self, @@ -2909,8 +2884,7 @@ async def update( *, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... @overload async def update( @@ -2919,8 +2893,7 @@ async def update( *, rpc_metadata: Mapping[str, str] = {}, rpc_timeout: Optional[timedelta] = None, - ) -> None: - ... + ) -> None: ... async def update( self, @@ -3212,8 +3185,7 @@ def _from_proto( @abstractmethod async def _to_proto( self, client: Client - ) -> temporalio.api.schedule.v1.ScheduleAction: - ... + ) -> temporalio.api.schedule.v1.ScheduleAction: ... @dataclass @@ -3259,8 +3231,7 @@ def __init__( retry_policy: Optional[temporalio.common.RetryPolicy] = None, memo: Optional[Mapping[str, Any]] = None, typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, - ) -> None: - ... + ) -> None: ... # Overload for single-param workflow @overload @@ -3277,8 +3248,7 @@ def __init__( retry_policy: Optional[temporalio.common.RetryPolicy] = None, memo: Optional[Mapping[str, Any]] = None, typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, - ) -> None: - ... + ) -> None: ... # Overload for multi-param workflow @overload @@ -3297,8 +3267,7 @@ def __init__( retry_policy: Optional[temporalio.common.RetryPolicy] = None, memo: Optional[Mapping[str, Any]] = None, typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, - ) -> None: - ... + ) -> None: ... # Overload for string-name workflow @overload @@ -3316,8 +3285,7 @@ def __init__( retry_policy: Optional[temporalio.common.RetryPolicy] = None, memo: Optional[Mapping[str, Any]] = None, typed_search_attributes: temporalio.common.TypedSearchAttributes = temporalio.common.TypedSearchAttributes.empty, - ) -> None: - ... + ) -> None: ... # Overload for raw info @overload @@ -3326,8 +3294,7 @@ def __init__( workflow: str, *, raw_info: temporalio.api.workflow.v1.NewWorkflowExecutionInfo, - ) -> None: - ... + ) -> None: ... def __init__( self, @@ -3566,9 +3533,7 @@ def _to_proto(self) -> temporalio.api.schedule.v1.BackfillRequest: start_time.FromDatetime(self.start_at) end_time = google.protobuf.timestamp_pb2.Timestamp() end_time.FromDatetime(self.end_at) - overlap_policy = ( - temporalio.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED - ) + overlap_policy = temporalio.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED if self.overlap: overlap_policy = temporalio.api.enums.v1.ScheduleOverlapPolicy.ValueType( self.overlap @@ -3772,18 +3737,17 @@ async def memo(self) -> Mapping[str, Any]: @overload async def memo_value( self, key: str, default: Any = temporalio.common._arg_unset - ) -> Any: - ... + ) -> Any: ... @overload - async def memo_value(self, key: str, *, type_hint: Type[ParamType]) -> ParamType: - ... + async def memo_value( + self, key: str, *, type_hint: Type[ParamType] + ) -> ParamType: ... @overload async def memo_value( self, key: str, default: AnyType, *, type_hint: Type[ParamType] - ) -> Union[AnyType, ParamType]: - ... + ) -> Union[AnyType, ParamType]: ... async def memo_value( self, @@ -4019,18 +3983,17 @@ async def memo(self) -> Mapping[str, Any]: @overload async def memo_value( self, key: str, default: Any = temporalio.common._arg_unset - ) -> Any: - ... + ) -> Any: ... @overload - async def memo_value(self, key: str, *, type_hint: Type[ParamType]) -> ParamType: - ... + async def memo_value( + self, key: str, *, type_hint: Type[ParamType] + ) -> ParamType: ... @overload async def memo_value( self, key: str, default: AnyType, *, type_hint: Type[ParamType] - ) -> Union[AnyType, ParamType]: - ... + ) -> Union[AnyType, ParamType]: ... async def memo_value( self, @@ -5093,9 +5056,7 @@ async def start_workflow( # If the status is ALREADY_EXISTS and the details can be extracted # as already started, use a different exception if err.status == RPCStatusCode.ALREADY_EXISTS and err.grpc_status.details: - details = ( - temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure() - ) + details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure() if err.grpc_status.details[0].Unpack(details): raise temporalio.exceptions.WorkflowAlreadyStartedError( input.id, input.workflow, run_id=details.run_id @@ -5623,9 +5584,7 @@ async def pause_schedule(self, input: PauseScheduleInput) -> None: ) async def trigger_schedule(self, input: TriggerScheduleInput) -> None: - overlap_policy = ( - temporalio.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED - ) + overlap_policy = temporalio.api.enums.v1.ScheduleOverlapPolicy.SCHEDULE_OVERLAP_POLICY_UNSPECIFIED if input.overlap: overlap_policy = temporalio.api.enums.v1.ScheduleOverlapPolicy.ValueType( input.overlap @@ -5743,7 +5702,7 @@ async def get_worker_task_reachability( def _history_from_json( - history: Union[str, Dict[str, Any]] + history: Union[str, Dict[str, Any]], ) -> temporalio.api.history.v1.History: if isinstance(history, str): history = json.loads(history) @@ -6118,17 +6077,11 @@ def _to_proto(self) -> temporalio.api.enums.v1.TaskReachability.ValueType: temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_NEW_WORKFLOWS ) elif self == TaskReachabilityType.EXISTING_WORKFLOWS: - return ( - temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_EXISTING_WORKFLOWS - ) + return temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_EXISTING_WORKFLOWS elif self == TaskReachabilityType.OPEN_WORKFLOWS: - return ( - temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_OPEN_WORKFLOWS - ) + return temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_OPEN_WORKFLOWS elif self == TaskReachabilityType.CLOSED_WORKFLOWS: - return ( - temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_CLOSED_WORKFLOWS - ) + return temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_CLOSED_WORKFLOWS else: return ( temporalio.api.enums.v1.TaskReachability.TASK_REACHABILITY_UNSPECIFIED diff --git a/temporalio/common.py b/temporalio/common.py index 4ddc6b14..428966e7 100644 --- a/temporalio/common.py +++ b/temporalio/common.py @@ -479,16 +479,14 @@ def __contains__(self, key: object) -> bool: @overload def get( self, key: SearchAttributeKey[SearchAttributeValueType] - ) -> Optional[SearchAttributeValueType]: - ... + ) -> Optional[SearchAttributeValueType]: ... @overload def get( self, key: SearchAttributeKey[SearchAttributeValueType], default: temporalio.types.AnyType, - ) -> Union[SearchAttributeValueType, temporalio.types.AnyType]: - ... + ) -> Union[SearchAttributeValueType, temporalio.types.AnyType]: ... def get( self, diff --git a/temporalio/contrib/opentelemetry.py b/temporalio/contrib/opentelemetry.py index 3f292098..2e0f4320 100644 --- a/temporalio/contrib/opentelemetry.py +++ b/temporalio/contrib/opentelemetry.py @@ -87,9 +87,7 @@ def __init__( # values, they'd also need to do it on the workflow side via subclassing # on that interceptor since they can't accept custom constructor values. self.header_key: str = "_tracer-data" - self.text_map_propagator: opentelemetry.propagators.textmap.TextMapPropagator = ( - default_text_map_propagator - ) + self.text_map_propagator: opentelemetry.propagators.textmap.TextMapPropagator = default_text_map_propagator # TODO(cretz): Should I be using the configured one at the client and activity level? self.payload_converter = temporalio.converter.PayloadConverter.default @@ -331,9 +329,7 @@ def __init__(self, next: temporalio.worker.WorkflowInboundInterceptor) -> None: # To customize these, like the primary tracing interceptor, subclassing # must be used self.header_key: str = "_tracer-data" - self.text_map_propagator: opentelemetry.propagators.textmap.TextMapPropagator = ( - default_text_map_propagator - ) + self.text_map_propagator: opentelemetry.propagators.textmap.TextMapPropagator = default_text_map_propagator # TODO(cretz): Should I be using the configured one for this workflow? self.payload_converter = temporalio.converter.PayloadConverter.default # This is the context for the overall workflow, lazily created diff --git a/temporalio/converter.py b/temporalio/converter.py index 155a6ee8..d3cb94ce 100644 --- a/temporalio/converter.py +++ b/temporalio/converter.py @@ -145,16 +145,14 @@ def to_payload(self, value: Any) -> temporalio.api.common.v1.Payload: return self.to_payloads([value])[0] @overload - def from_payload(self, payload: temporalio.api.common.v1.Payload) -> Any: - ... + def from_payload(self, payload: temporalio.api.common.v1.Payload) -> Any: ... @overload def from_payload( self, payload: temporalio.api.common.v1.Payload, type_hint: Type[temporalio.types.AnyType], - ) -> temporalio.types.AnyType: - ... + ) -> temporalio.types.AnyType: ... def from_payload( self, @@ -878,9 +876,7 @@ def _error_to_failure( elif isinstance(error, temporalio.exceptions.ChildWorkflowError): failure.child_workflow_execution_failure_info.SetInParent() failure.child_workflow_execution_failure_info.namespace = error.namespace - failure.child_workflow_execution_failure_info.workflow_execution.workflow_id = ( - error.workflow_id - ) + failure.child_workflow_execution_failure_info.workflow_execution.workflow_id = error.workflow_id failure.child_workflow_execution_failure_info.workflow_execution.run_id = ( error.run_id ) diff --git a/temporalio/worker/_activity.py b/temporalio/worker/_activity.py index e8435fb1..c55ff245 100644 --- a/temporalio/worker/_activity.py +++ b/temporalio/worker/_activity.py @@ -80,9 +80,9 @@ def __init__( self._metric_meter = metric_meter self._fail_worker_exception_queue: asyncio.Queue[Exception] = asyncio.Queue() # Lazily created on first activity - self._worker_shutdown_event: Optional[ - temporalio.activity._CompositeEvent - ] = None + self._worker_shutdown_event: Optional[temporalio.activity._CompositeEvent] = ( + None + ) self._seen_sync_activity = False # Validate and build activity dict @@ -151,7 +151,9 @@ async def raise_from_queue() -> NoReturn: poll_task = asyncio.create_task( self._bridge_worker().poll_activity_task() ) - await asyncio.wait([poll_task, exception_task], return_when=asyncio.FIRST_COMPLETED) # type: ignore + await asyncio.wait( + [poll_task, exception_task], return_when=asyncio.FIRST_COMPLETED + ) # type: ignore # If exception for failing the worker happened, raise it. # Otherwise, the poll succeeded. if exception_task.done(): @@ -306,10 +308,12 @@ async def _run_activity( if isinstance( self._activity_executor, concurrent.futures.ThreadPoolExecutor ): - running_activity.cancelled_event = temporalio.activity._CompositeEvent( - thread_event=threading.Event(), - # No async event - async_event=None, + running_activity.cancelled_event = ( + temporalio.activity._CompositeEvent( + thread_event=threading.Event(), + # No async event + async_event=None, + ) ) if not activity_def.no_thread_cancel_exception: running_activity.cancel_thread_raiser = _ThreadExceptionRaiser() @@ -318,10 +322,12 @@ async def _run_activity( manager = self._shared_state_manager # Pre-checked on worker init assert manager - running_activity.cancelled_event = temporalio.activity._CompositeEvent( - thread_event=manager.new_event(), - # No async event - async_event=None, + running_activity.cancelled_event = ( + temporalio.activity._CompositeEvent( + thread_event=manager.new_event(), + # No async event + async_event=None, + ) ) # We also must set the worker shutdown thread event to a # manager event if this is the first sync event. We don't @@ -616,7 +622,9 @@ def init(self, outbound: ActivityOutboundInterceptor) -> None: async def execute_activity(self, input: ExecuteActivityInput) -> Any: # Handle synchronous activity - is_async = inspect.iscoroutinefunction(input.fn) or inspect.iscoroutinefunction(input.fn.__call__) # type: ignore + is_async = inspect.iscoroutinefunction(input.fn) or inspect.iscoroutinefunction( + input.fn.__call__ # type: ignore + ) if not is_async: # We execute a top-level function via the executor. It is top-level # because it needs to be picklable. Also, by default Python does not diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index d29b727e..004faa70 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -2765,9 +2765,7 @@ def _make_unfinished_update_handler_message( are okay with interrupting running handlers when the workflow finishes, and causing clients to receive errors, then you can disable this warning via the update handler decorator: `@workflow.update(unfinished_policy=workflow.HandlerUnfinishedPolicy.ABANDON)`. -""".replace( - "\n", " " - ).strip() +""".replace("\n", " ").strip() return ( f"{message} The following updates were unfinished (and warnings were not disabled for their handler): " + json.dumps([{"name": ex.name, "id": ex.id} for ex in handler_executions]) @@ -2784,9 +2782,7 @@ def _make_unfinished_signal_handler_message( you and the clients sending the signal are okay with interrupting running handlers when the workflow finishes, and causing clients to receive errors, then you can disable this warning via the signal handler decorator: `@workflow.signal(unfinished_policy=workflow.HandlerUnfinishedPolicy.ABANDON)`. -""".replace( - "\n", " " - ).strip() +""".replace("\n", " ").strip() names = collections.Counter(ex.name for ex in handler_executions) return ( f"{message} The following signals were unfinished (and warnings were not disabled for their handler): " diff --git a/temporalio/worker/workflow_sandbox/__init__.py b/temporalio/worker/workflow_sandbox/__init__.py index 58f96d3e..399e633c 100644 --- a/temporalio/worker/workflow_sandbox/__init__.py +++ b/temporalio/worker/workflow_sandbox/__init__.py @@ -54,7 +54,6 @@ # * https://bugs.python.org/issue44847 # * https://github.com/GrahamDumpleton/wrapt/issues/130 - from ._restrictions import ( RestrictedWorkflowAccessError, SandboxMatcher, diff --git a/temporalio/worker/workflow_sandbox/_restrictions.py b/temporalio/worker/workflow_sandbox/_restrictions.py index fc5111ac..1a32cdd4 100644 --- a/temporalio/worker/workflow_sandbox/_restrictions.py +++ b/temporalio/worker/workflow_sandbox/_restrictions.py @@ -420,21 +420,24 @@ def with_child_unrestricted(self, *child_path: str) -> SandboxMatcher: "temporalio.bridge.temporal_sdk_bridge", } -SandboxRestrictions.passthrough_modules_with_temporal = SandboxRestrictions.passthrough_modules_minimum | { - # is_subclass is broken in sandbox due to Python bug on ABC C extension. - # So we have to include all things that might extend an ABC class and - # do a subclass check. See https://bugs.python.org/issue44847 and - # https://wrapt.readthedocs.io/en/latest/issues.html#using-issubclass-on-abstract-classes - "asyncio", - "abc", - "temporalio", - # Due to pkg_resources use of base classes caused by the ABC issue - # above, and Otel's use of pkg_resources, we pass it through - "pkg_resources", - # Due to how Pydantic is importing lazily inside of some classes, we choose - # to always pass it through - "pydantic", -} +SandboxRestrictions.passthrough_modules_with_temporal = ( + SandboxRestrictions.passthrough_modules_minimum + | { + # is_subclass is broken in sandbox due to Python bug on ABC C extension. + # So we have to include all things that might extend an ABC class and + # do a subclass check. See https://bugs.python.org/issue44847 and + # https://wrapt.readthedocs.io/en/latest/issues.html#using-issubclass-on-abstract-classes + "asyncio", + "abc", + "temporalio", + # Due to pkg_resources use of base classes caused by the ABC issue + # above, and Otel's use of pkg_resources, we pass it through + "pkg_resources", + # Due to how Pydantic is importing lazily inside of some classes, we choose + # to always pass it through + "pydantic", + } +) # sys.stdlib_module_names is only available on 3.10+, so we hardcode here. A # test will fail if this list doesn't match the latest Python version it was @@ -474,15 +477,18 @@ def with_child_unrestricted(self, *child_path: str) -> SandboxMatcher: "xdrlib,xml,xmlrpc,zipapp,zipfile,zipimport,zlib,zoneinfo" ) -SandboxRestrictions.passthrough_modules_maximum = SandboxRestrictions.passthrough_modules_with_temporal | { - # All stdlib modules except "sys" and their children. Children are not - # listed in stdlib names but we need them because in some cases (e.g. os - # manually setting sys.modules["os.path"]) they have certain child - # expectations. - v - for v in _stdlib_module_names.split(",") - if v != "sys" -} +SandboxRestrictions.passthrough_modules_maximum = ( + SandboxRestrictions.passthrough_modules_with_temporal + | { + # All stdlib modules except "sys" and their children. Children are not + # listed in stdlib names but we need them because in some cases (e.g. os + # manually setting sys.modules["os.path"]) they have certain child + # expectations. + v + for v in _stdlib_module_names.split(",") + if v != "sys" + } +) SandboxRestrictions.passthrough_modules_default = ( SandboxRestrictions.passthrough_modules_maximum diff --git a/temporalio/workflow.py b/temporalio/workflow.py index 3d98df9f..6ee25ad2 100644 --- a/temporalio/workflow.py +++ b/temporalio/workflow.py @@ -80,8 +80,7 @@ @overload -def defn(cls: ClassType) -> ClassType: - ... +def defn(cls: ClassType) -> ClassType: ... @overload @@ -90,15 +89,13 @@ def defn( name: Optional[str] = None, sandboxed: bool = True, failure_exception_types: Sequence[Type[BaseException]] = [], -) -> Callable[[ClassType], ClassType]: - ... +) -> Callable[[ClassType], ClassType]: ... @overload def defn( *, sandboxed: bool = True, dynamic: bool = False -) -> Callable[[ClassType], ClassType]: - ... +) -> Callable[[ClassType], ClassType]: ... def defn( @@ -198,16 +195,18 @@ class UnfinishedSignalHandlersWarning(RuntimeWarning): @overload -def signal(fn: CallableSyncOrAsyncReturnNoneType) -> CallableSyncOrAsyncReturnNoneType: - ... +def signal( + fn: CallableSyncOrAsyncReturnNoneType, +) -> CallableSyncOrAsyncReturnNoneType: ... @overload def signal( *, unfinished_policy: HandlerUnfinishedPolicy = HandlerUnfinishedPolicy.WARN_AND_ABANDON, -) -> Callable[[CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType]: - ... +) -> Callable[ + [CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType +]: ... @overload @@ -215,8 +214,9 @@ def signal( *, name: str, unfinished_policy: HandlerUnfinishedPolicy = HandlerUnfinishedPolicy.WARN_AND_ABANDON, -) -> Callable[[CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType]: - ... +) -> Callable[ + [CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType +]: ... @overload @@ -224,8 +224,9 @@ def signal( *, dynamic: Literal[True], unfinished_policy: HandlerUnfinishedPolicy = HandlerUnfinishedPolicy.WARN_AND_ABANDON, -) -> Callable[[CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType]: - ... +) -> Callable[ + [CallableSyncOrAsyncReturnNoneType], CallableSyncOrAsyncReturnNoneType +]: ... def signal( @@ -289,18 +290,15 @@ def decorator( @overload -def query(fn: CallableType) -> CallableType: - ... +def query(fn: CallableType) -> CallableType: ... @overload -def query(*, name: str) -> Callable[[CallableType], CallableType]: - ... +def query(*, name: str) -> Callable[[CallableType], CallableType]: ... @overload -def query(*, dynamic: Literal[True]) -> Callable[[CallableType], CallableType]: - ... +def query(*, dynamic: Literal[True]) -> Callable[[CallableType], CallableType]: ... def query( @@ -515,8 +513,7 @@ def logger_details(self) -> Mapping[str, Any]: return self._logger_details @abstractmethod - def workflow_all_handlers_finished(self) -> bool: - ... + def workflow_all_handlers_finished(self) -> bool: ... @abstractmethod def workflow_continue_as_new( @@ -535,96 +532,81 @@ def workflow_continue_as_new( ] ], versioning_intent: Optional[VersioningIntent], - ) -> NoReturn: - ... + ) -> NoReturn: ... @abstractmethod - def workflow_extern_functions(self) -> Mapping[str, Callable]: - ... + def workflow_extern_functions(self) -> Mapping[str, Callable]: ... @abstractmethod - def workflow_get_current_build_id(self) -> str: - ... + def workflow_get_current_build_id(self) -> str: ... @abstractmethod - def workflow_get_current_history_length(self) -> int: - ... + def workflow_get_current_history_length(self) -> int: ... @abstractmethod - def workflow_get_current_history_size(self) -> int: - ... + def workflow_get_current_history_size(self) -> int: ... @abstractmethod def workflow_get_external_workflow_handle( self, id: str, *, run_id: Optional[str] - ) -> ExternalWorkflowHandle[Any]: - ... + ) -> ExternalWorkflowHandle[Any]: ... @abstractmethod - def workflow_get_query_handler(self, name: Optional[str]) -> Optional[Callable]: - ... + def workflow_get_query_handler(self, name: Optional[str]) -> Optional[Callable]: ... @abstractmethod - def workflow_get_signal_handler(self, name: Optional[str]) -> Optional[Callable]: - ... + def workflow_get_signal_handler( + self, name: Optional[str] + ) -> Optional[Callable]: ... @abstractmethod - def workflow_get_update_handler(self, name: Optional[str]) -> Optional[Callable]: - ... + def workflow_get_update_handler( + self, name: Optional[str] + ) -> Optional[Callable]: ... @abstractmethod - def workflow_get_update_validator(self, name: Optional[str]) -> Optional[Callable]: - ... + def workflow_get_update_validator( + self, name: Optional[str] + ) -> Optional[Callable]: ... @abstractmethod - def workflow_info(self) -> Info: - ... + def workflow_info(self) -> Info: ... @abstractmethod - def workflow_is_continue_as_new_suggested(self) -> bool: - ... + def workflow_is_continue_as_new_suggested(self) -> bool: ... @abstractmethod - def workflow_is_replaying(self) -> bool: - ... + def workflow_is_replaying(self) -> bool: ... @abstractmethod - def workflow_memo(self) -> Mapping[str, Any]: - ... + def workflow_memo(self) -> Mapping[str, Any]: ... @abstractmethod def workflow_memo_value( self, key: str, default: Any, *, type_hint: Optional[Type] - ) -> Any: - ... + ) -> Any: ... @abstractmethod - def workflow_metric_meter(self) -> temporalio.common.MetricMeter: - ... + def workflow_metric_meter(self) -> temporalio.common.MetricMeter: ... @abstractmethod - def workflow_patch(self, id: str, *, deprecated: bool) -> bool: - ... + def workflow_patch(self, id: str, *, deprecated: bool) -> bool: ... @abstractmethod - def workflow_payload_converter(self) -> temporalio.converter.PayloadConverter: - ... + def workflow_payload_converter(self) -> temporalio.converter.PayloadConverter: ... @abstractmethod - def workflow_random(self) -> Random: - ... + def workflow_random(self) -> Random: ... @abstractmethod def workflow_set_query_handler( self, name: Optional[str], handler: Optional[Callable] - ) -> None: - ... + ) -> None: ... @abstractmethod def workflow_set_signal_handler( self, name: Optional[str], handler: Optional[Callable] - ) -> None: - ... + ) -> None: ... @abstractmethod def workflow_set_update_handler( @@ -632,8 +614,7 @@ def workflow_set_update_handler( name: Optional[str], handler: Optional[Callable], validator: Optional[Callable], - ) -> None: - ... + ) -> None: ... @abstractmethod def workflow_start_activity( @@ -650,8 +631,7 @@ def workflow_start_activity( cancellation_type: ActivityCancellationType, activity_id: Optional[str], versioning_intent: Optional[VersioningIntent], - ) -> ActivityHandle[Any]: - ... + ) -> ActivityHandle[Any]: ... @abstractmethod async def workflow_start_child_workflow( @@ -677,8 +657,7 @@ async def workflow_start_child_workflow( ] ], versioning_intent: Optional[VersioningIntent], - ) -> ChildWorkflowHandle[Any, Any]: - ... + ) -> ChildWorkflowHandle[Any, Any]: ... @abstractmethod def workflow_start_local_activity( @@ -693,12 +672,10 @@ def workflow_start_local_activity( local_retry_threshold: Optional[timedelta], cancellation_type: ActivityCancellationType, activity_id: Optional[str], - ) -> ActivityHandle[Any]: - ... + ) -> ActivityHandle[Any]: ... @abstractmethod - def workflow_time_ns(self) -> int: - ... + def workflow_time_ns(self) -> int: ... @abstractmethod def workflow_upsert_search_attributes( @@ -707,14 +684,12 @@ def workflow_upsert_search_attributes( temporalio.common.SearchAttributes, Sequence[temporalio.common.SearchAttributeUpdate], ], - ) -> None: - ... + ) -> None: ... @abstractmethod async def workflow_wait_condition( self, fn: Callable[[], bool], *, timeout: Optional[float] = None - ) -> None: - ... + ) -> None: ... _current_update_info: contextvars.ContextVar[UpdateInfo] = contextvars.ContextVar( @@ -790,20 +765,17 @@ def memo() -> Mapping[str, Any]: @overload -def memo_value(key: str, default: Any = temporalio.common._arg_unset) -> Any: - ... +def memo_value(key: str, default: Any = temporalio.common._arg_unset) -> Any: ... @overload -def memo_value(key: str, *, type_hint: Type[ParamType]) -> ParamType: - ... +def memo_value(key: str, *, type_hint: Type[ParamType]) -> ParamType: ... @overload def memo_value( key: str, default: AnyType, *, type_hint: Type[ParamType] -) -> Union[AnyType, ParamType]: - ... +) -> Union[AnyType, ParamType]: ... def memo_value( @@ -923,7 +895,7 @@ def upsert_search_attributes( attributes: Union[ temporalio.common.SearchAttributes, Sequence[temporalio.common.SearchAttributeUpdate], - ] + ], ) -> None: """Upsert search attributes for this workflow. @@ -960,16 +932,14 @@ def validator( @overload def update( - fn: Callable[MultiParamSpec, Awaitable[ReturnType]] -) -> UpdateMethodMultiParam[MultiParamSpec, ReturnType]: - ... + fn: Callable[MultiParamSpec, Awaitable[ReturnType]], +) -> UpdateMethodMultiParam[MultiParamSpec, ReturnType]: ... @overload def update( - fn: Callable[MultiParamSpec, ReturnType] -) -> UpdateMethodMultiParam[MultiParamSpec, ReturnType]: - ... + fn: Callable[MultiParamSpec, ReturnType], +) -> UpdateMethodMultiParam[MultiParamSpec, ReturnType]: ... @overload @@ -979,8 +949,7 @@ def update( ) -> Callable[ [Callable[MultiParamSpec, ReturnType]], UpdateMethodMultiParam[MultiParamSpec, ReturnType], -]: - ... +]: ... @overload @@ -991,8 +960,7 @@ def update( ) -> Callable[ [Callable[MultiParamSpec, ReturnType]], UpdateMethodMultiParam[MultiParamSpec, ReturnType], -]: - ... +]: ... @overload @@ -1003,8 +971,7 @@ def update( ) -> Callable[ [Callable[MultiParamSpec, ReturnType]], UpdateMethodMultiParam[MultiParamSpec, ReturnType], -]: - ... +]: ... def update( @@ -1713,8 +1680,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -1731,8 +1697,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -1750,8 +1715,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -1769,8 +1733,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -1788,8 +1751,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -1807,8 +1769,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for string-name activity @@ -1828,8 +1789,7 @@ def start_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[Any]: - ... +) -> ActivityHandle[Any]: ... def start_activity( @@ -1914,8 +1874,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -1932,8 +1891,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -1951,8 +1909,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -1970,8 +1927,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -1989,8 +1945,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -2008,8 +1963,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for string-name activity @@ -2029,8 +1983,7 @@ async def execute_activity( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> Any: - ... +) -> Any: ... async def execute_activity( @@ -2085,8 +2038,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -2103,8 +2055,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -2122,8 +2073,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -2141,8 +2091,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -2160,8 +2109,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -2179,8 +2127,7 @@ def start_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... def start_activity_class( @@ -2232,8 +2179,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -2250,8 +2196,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -2269,8 +2214,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -2288,8 +2232,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -2307,8 +2250,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -2326,8 +2268,7 @@ async def execute_activity_class( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... async def execute_activity_class( @@ -2379,8 +2320,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -2397,8 +2337,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -2416,8 +2355,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -2435,8 +2373,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -2454,8 +2391,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -2473,8 +2409,7 @@ def start_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... def start_activity_method( @@ -2526,8 +2461,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -2544,8 +2478,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -2563,8 +2496,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -2582,8 +2514,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -2601,8 +2532,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -2620,8 +2550,7 @@ async def execute_activity_method( cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... async def execute_activity_method( @@ -2687,8 +2616,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -2703,8 +2631,7 @@ def start_local_activity( retry_policy: Optional[temporalio.common.RetryPolicy] = None, local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -2720,8 +2647,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -2737,8 +2663,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -2754,8 +2679,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -2771,8 +2695,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for string-name activity @@ -2790,8 +2713,7 @@ def start_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[Any]: - ... +) -> ActivityHandle[Any]: ... def start_local_activity( @@ -2867,8 +2789,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -2883,8 +2804,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -2900,8 +2820,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -2917,8 +2836,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -2934,8 +2852,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -2951,8 +2868,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for string-name activity @@ -2970,8 +2886,7 @@ async def execute_local_activity( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> Any: - ... +) -> Any: ... async def execute_local_activity( @@ -3023,8 +2938,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -3039,8 +2953,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -3056,8 +2969,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -3073,8 +2985,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -3090,8 +3001,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -3107,8 +3017,7 @@ def start_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... def start_local_activity_class( @@ -3157,8 +3066,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -3173,8 +3081,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -3190,8 +3097,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -3207,8 +3113,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -3224,8 +3129,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -3241,8 +3145,7 @@ async def execute_local_activity_class( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... async def execute_local_activity_class( @@ -3293,8 +3196,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync no-param activity @@ -3309,8 +3211,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async single-param activity @@ -3326,8 +3227,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync single-param activity @@ -3343,8 +3243,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for async multi-param activity @@ -3360,8 +3259,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... # Overload for sync multi-param activity @@ -3377,8 +3275,7 @@ def start_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ActivityHandle[ReturnType]: - ... +) -> ActivityHandle[ReturnType]: ... def start_local_activity_method( @@ -3427,8 +3324,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync no-param activity @@ -3443,8 +3339,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async single-param activity @@ -3460,8 +3355,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync single-param activity @@ -3477,8 +3371,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for async multi-param activity @@ -3494,8 +3387,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for sync multi-param activity @@ -3511,8 +3403,7 @@ async def execute_local_activity_method( local_retry_threshold: Optional[timedelta] = None, cancellation_type: ActivityCancellationType = ActivityCancellationType.TRY_CANCEL, activity_id: Optional[str] = None, -) -> ReturnType: - ... +) -> ReturnType: ... async def execute_local_activity_method( @@ -3573,16 +3464,14 @@ def first_execution_run_id(self) -> Optional[str]: async def signal( self, signal: MethodSyncOrAsyncNoParam[SelfType, None], - ) -> None: - ... + ) -> None: ... @overload async def signal( self, signal: MethodSyncOrAsyncSingleParam[SelfType, ParamType, None], arg: ParamType, - ) -> None: - ... + ) -> None: ... @overload async def signal( @@ -3592,8 +3481,7 @@ async def signal( ], *, args: Sequence[Any], - ) -> None: - ... + ) -> None: ... @overload async def signal( @@ -3602,8 +3490,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], - ) -> None: - ... + ) -> None: ... async def signal( self, @@ -3702,8 +3589,7 @@ async def start_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ChildWorkflowHandle[SelfType, ReturnType]: - ... +) -> ChildWorkflowHandle[SelfType, ReturnType]: ... # Overload for single-param workflow @@ -3729,8 +3615,7 @@ async def start_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ChildWorkflowHandle[SelfType, ReturnType]: - ... +) -> ChildWorkflowHandle[SelfType, ReturnType]: ... # Overload for multi-param workflow @@ -3756,8 +3641,7 @@ async def start_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ChildWorkflowHandle[SelfType, ReturnType]: - ... +) -> ChildWorkflowHandle[SelfType, ReturnType]: ... # Overload for string-name workflow @@ -3785,8 +3669,7 @@ async def start_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ChildWorkflowHandle[Any, Any]: - ... +) -> ChildWorkflowHandle[Any, Any]: ... async def start_child_workflow( @@ -3888,8 +3771,7 @@ async def execute_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for single-param workflow @@ -3915,8 +3797,7 @@ async def execute_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for multi-param workflow @@ -3942,8 +3823,7 @@ async def execute_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> ReturnType: - ... +) -> ReturnType: ... # Overload for string-name workflow @@ -3971,8 +3851,7 @@ async def execute_child_workflow( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> Any: - ... +) -> Any: ... async def execute_child_workflow( @@ -4048,16 +3927,14 @@ def run_id(self) -> Optional[str]: async def signal( self, signal: MethodSyncOrAsyncNoParam[SelfType, None], - ) -> None: - ... + ) -> None: ... @overload async def signal( self, signal: MethodSyncOrAsyncSingleParam[SelfType, ParamType, None], arg: ParamType, - ) -> None: - ... + ) -> None: ... @overload async def signal( @@ -4066,8 +3943,7 @@ async def signal( arg: Any = temporalio.common._arg_unset, *, args: Sequence[Any] = [], - ) -> None: - ... + ) -> None: ... async def signal( self, @@ -4170,8 +4046,7 @@ def continue_as_new( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> NoReturn: - ... +) -> NoReturn: ... # Overload for no-param workflow @@ -4190,8 +4065,7 @@ def continue_as_new( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> NoReturn: - ... +) -> NoReturn: ... # Overload for single-param workflow @@ -4211,8 +4085,7 @@ def continue_as_new( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> NoReturn: - ... +) -> NoReturn: ... # Overload for multi-param workflow @@ -4232,8 +4105,7 @@ def continue_as_new( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> NoReturn: - ... +) -> NoReturn: ... # Overload for string-name workflow @@ -4253,8 +4125,7 @@ def continue_as_new( ] ] = None, versioning_intent: Optional[VersioningIntent] = None, -) -> NoReturn: - ... +) -> NoReturn: ... def continue_as_new( @@ -4558,8 +4429,7 @@ async def wait( # type: ignore[misc] *, timeout: Optional[float] = None, return_when: str = asyncio.ALL_COMPLETED, -) -> Tuple[List[_FT], List[_FT]]: - ... +) -> Tuple[List[_FT], List[_FT]]: ... @overload @@ -4568,8 +4438,7 @@ async def wait( *, timeout: Optional[float] = None, return_when: str = asyncio.ALL_COMPLETED, -) -> Tuple[List[asyncio.Task[AnyType]], set[asyncio.Task[AnyType]]]: - ... +) -> Tuple[List[asyncio.Task[AnyType]], set[asyncio.Task[AnyType]]]: ... async def wait( diff --git a/tests/helpers/worker.py b/tests/helpers/worker.py index f9710fb6..ea307d26 100644 --- a/tests/helpers/worker.py +++ b/tests/helpers/worker.py @@ -163,9 +163,9 @@ def signal_handler(arg: Optional[Any] = None) -> None: milliseconds=opt.schedule_to_start_timeout_ms ) if opt.wait_for_cancellation: - config[ - "cancellation_type" - ] = workflow.ActivityCancellationType.WAIT_CANCELLATION_COMPLETED + config["cancellation_type"] = ( + workflow.ActivityCancellationType.WAIT_CANCELLATION_COMPLETED + ) if opt.heartbeat_timeout_ms: config["heartbeat_timeout"] = timedelta( milliseconds=opt.heartbeat_timeout_ms diff --git a/tests/test_client.py b/tests/test_client.py index a4aaf7c7..d4019554 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -415,9 +415,9 @@ async def test_single_client_config_change(client: Client, worker: ExternalWorke assert "some query arg" == await handle.query("some query", "some query arg") # Now create a client with the rejection condition changed to not open config = client.config() - config[ - "default_workflow_query_reject_condition" - ] = temporalio.common.QueryRejectCondition.NOT_OPEN + config["default_workflow_query_reject_condition"] = ( + temporalio.common.QueryRejectCondition.NOT_OPEN + ) reject_client = Client(**config) with pytest.raises(WorkflowQueryRejectedError): await reject_client.get_workflow_handle(handle.id).query( @@ -630,67 +630,51 @@ def test_history_from_json(): # Make history with some enums, one one each event history = History() - history.events.add().request_cancel_external_workflow_execution_failed_event_attributes.cause = ( - CancelExternalWorkflowExecutionFailedCause.CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND - ) + history.events.add().request_cancel_external_workflow_execution_failed_event_attributes.cause = CancelExternalWorkflowExecutionFailedCause.CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND history.events.add().workflow_execution_started_event_attributes.initiator = ( ContinueAsNewInitiator.CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE ) history.events.add().event_type = ( EventType.EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED ) - history.events.add().start_child_workflow_execution_initiated_event_attributes.parent_close_policy = ( - ParentClosePolicy.PARENT_CLOSE_POLICY_ABANDON - ) + history.events.add().start_child_workflow_execution_initiated_event_attributes.parent_close_policy = ParentClosePolicy.PARENT_CLOSE_POLICY_ABANDON history.events.add().workflow_execution_failed_event_attributes.retry_state = ( RetryState.RETRY_STATE_CANCEL_REQUESTED ) - history.events.add().signal_external_workflow_execution_failed_event_attributes.cause = ( - SignalExternalWorkflowExecutionFailedCause.SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND - ) - history.events.add().start_child_workflow_execution_failed_event_attributes.cause = ( - StartChildWorkflowExecutionFailedCause.START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND - ) + history.events.add().signal_external_workflow_execution_failed_event_attributes.cause = SignalExternalWorkflowExecutionFailedCause.SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND + history.events.add().start_child_workflow_execution_failed_event_attributes.cause = StartChildWorkflowExecutionFailedCause.START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND history.events.add().workflow_execution_started_event_attributes.task_queue.kind = ( TaskQueueKind.TASK_QUEUE_KIND_NORMAL ) history.events.add().workflow_task_timed_out_event_attributes.timeout_type = ( TimeoutType.TIMEOUT_TYPE_HEARTBEAT ) - history.events.add().start_child_workflow_execution_initiated_event_attributes.workflow_id_reuse_policy = ( - WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE - ) + history.events.add().start_child_workflow_execution_initiated_event_attributes.workflow_id_reuse_policy = WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE history.events.add().workflow_task_failed_event_attributes.cause = ( WorkflowTaskFailedCause.WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY ) - history.events.add().workflow_execution_started_event_attributes.continued_failure.timeout_failure_info.timeout_type = ( - TimeoutType.TIMEOUT_TYPE_SCHEDULE_TO_CLOSE - ) - history.events.add().activity_task_started_event_attributes.last_failure.activity_failure_info.retry_state = ( - RetryState.RETRY_STATE_IN_PROGRESS - ) - history.events.add().workflow_execution_failed_event_attributes.failure.cause.child_workflow_execution_failure_info.retry_state = ( - RetryState.RETRY_STATE_INTERNAL_SERVER_ERROR - ) + history.events.add().workflow_execution_started_event_attributes.continued_failure.timeout_failure_info.timeout_type = TimeoutType.TIMEOUT_TYPE_SCHEDULE_TO_CLOSE + history.events.add().activity_task_started_event_attributes.last_failure.activity_failure_info.retry_state = RetryState.RETRY_STATE_IN_PROGRESS + history.events.add().workflow_execution_failed_event_attributes.failure.cause.child_workflow_execution_failure_info.retry_state = RetryState.RETRY_STATE_INTERNAL_SERVER_ERROR # Convert to JSON dict and alter enums to pascal versions bad_history_dict = json_format.MessageToDict(history) e = bad_history_dict["events"] - e[0]["requestCancelExternalWorkflowExecutionFailedEventAttributes"][ - "cause" - ] = "ExternalWorkflowExecutionNotFound" + e[0]["requestCancelExternalWorkflowExecutionFailedEventAttributes"]["cause"] = ( + "ExternalWorkflowExecutionNotFound" + ) e[1]["workflowExecutionStartedEventAttributes"]["initiator"] = "CronSchedule" e[2]["eventType"] = "ActivityTaskCancelRequested" - e[3]["startChildWorkflowExecutionInitiatedEventAttributes"][ - "parentClosePolicy" - ] = "Abandon" + e[3]["startChildWorkflowExecutionInitiatedEventAttributes"]["parentClosePolicy"] = ( + "Abandon" + ) e[4]["workflowExecutionFailedEventAttributes"]["retryState"] = "CancelRequested" - e[5]["signalExternalWorkflowExecutionFailedEventAttributes"][ - "cause" - ] = "ExternalWorkflowExecutionNotFound" - e[6]["startChildWorkflowExecutionFailedEventAttributes"][ - "cause" - ] = "NamespaceNotFound" + e[5]["signalExternalWorkflowExecutionFailedEventAttributes"]["cause"] = ( + "ExternalWorkflowExecutionNotFound" + ) + e[6]["startChildWorkflowExecutionFailedEventAttributes"]["cause"] = ( + "NamespaceNotFound" + ) e[7]["workflowExecutionStartedEventAttributes"]["taskQueue"]["kind"] = "Normal" e[8]["workflowTaskTimedOutEventAttributes"]["timeoutType"] = "Heartbeat" e[9]["startChildWorkflowExecutionInitiatedEventAttributes"][ diff --git a/tests/test_converter.py b/tests/test_converter.py index e3232d6a..4cad639a 100644 --- a/tests/test_converter.py +++ b/tests/test_converter.py @@ -35,9 +35,8 @@ import temporalio.api.common.v1 import temporalio.common -from temporalio.api.common.v1 import Payload +from temporalio.api.common.v1 import Payload, Payloads from temporalio.api.common.v1 import Payload as AnotherNameForPayload -from temporalio.api.common.v1 import Payloads from temporalio.api.failure.v1 import Failure from temporalio.common import RawValue from temporalio.converter import ( diff --git a/tests/worker/test_replayer.py b/tests/worker/test_replayer.py index 732c7e0c..08ae2cfe 100644 --- a/tests/worker/test_replayer.py +++ b/tests/worker/test_replayer.py @@ -286,9 +286,9 @@ async def test_replayer_multiple_from_client( task_queue=worker.task_queue, ) assert handle.result_run_id - expected_runs_and_non_det[ - handle.result_run_id - ] = should_cause_nondeterminism + expected_runs_and_non_det[handle.result_run_id] = ( + should_cause_nondeterminism + ) await handle.result() # Run replayer with list iterator mapped to histories and collect results diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index c63d2de9..fcd957ae 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -1127,10 +1127,9 @@ async def child_started() -> bool: return await handle.query( CancelChildWorkflow.ready ) and await client.get_workflow_handle_for( - LongSleepWorkflow.run, workflow_id=f"{handle.id}_child" # type: ignore[arg-type] - ).query( - LongSleepWorkflow.started - ) + LongSleepWorkflow.run, # type: ignore[arg-type] + workflow_id=f"{handle.id}_child", + ).query(LongSleepWorkflow.started) except RPCError as err: # Ignore not-found or failed precondition because child may # not have started yet @@ -1228,10 +1227,10 @@ class SignalExternalWorkflowArgs: class SignalExternalWorkflow: @workflow.run async def run(self, args: SignalExternalWorkflowArgs) -> None: - handle: workflow.ExternalWorkflowHandle[ - ReturnSignalWorkflow - ] = workflow.get_external_workflow_handle_for( - ReturnSignalWorkflow.run, args.external_workflow_id + handle: workflow.ExternalWorkflowHandle[ReturnSignalWorkflow] = ( + workflow.get_external_workflow_handle_for( + ReturnSignalWorkflow.run, args.external_workflow_id + ) ) await handle.signal(ReturnSignalWorkflow.my_signal, args.signal_value) @@ -1609,7 +1608,7 @@ async def test_workflow_continue_as_new(client: Client, env: WorkflowEnvironment def search_attributes_to_serializable( - attrs: Union[SearchAttributes, TypedSearchAttributes] + attrs: Union[SearchAttributes, TypedSearchAttributes], ) -> Mapping[str, Any]: if isinstance(attrs, TypedSearchAttributes): return { @@ -2205,43 +2204,35 @@ async def data_class_typed_activity(param: MyDataClass) -> MyDataClass: @workflow.defn(name="DataClassTypedWorkflow") class DataClassTypedWorkflowProto(Protocol): @workflow.run - async def run(self, arg: MyDataClass) -> MyDataClass: - ... + async def run(self, arg: MyDataClass) -> MyDataClass: ... @workflow.signal - def signal_sync(self, param: MyDataClass) -> None: - ... + def signal_sync(self, param: MyDataClass) -> None: ... @workflow.query - def query_sync(self, param: MyDataClass) -> MyDataClass: - ... + def query_sync(self, param: MyDataClass) -> MyDataClass: ... @workflow.signal - def complete(self) -> None: - ... + def complete(self) -> None: ... @workflow.defn(name="DataClassTypedWorkflow") class DataClassTypedWorkflowAbstract(ABC): @workflow.run @abstractmethod - async def run(self, arg: MyDataClass) -> MyDataClass: - ... + async def run(self, arg: MyDataClass) -> MyDataClass: ... @workflow.signal @abstractmethod - def signal_sync(self, param: MyDataClass) -> None: - ... + def signal_sync(self, param: MyDataClass) -> None: ... @workflow.query @abstractmethod - def query_sync(self, param: MyDataClass) -> MyDataClass: - ... + def query_sync(self, param: MyDataClass) -> MyDataClass: ... @workflow.signal @abstractmethod - def complete(self) -> None: - ... + def complete(self) -> None: ... @workflow.defn @@ -3065,7 +3056,8 @@ async def test_workflow_typed_handle(client: Client): TypedHandleWorkflow.run, id=id, task_queue=worker.task_queue ) handle_result: TypedHandleResponse = await client.get_workflow_handle_for( - TypedHandleWorkflow.run, id # type: ignore[arg-type] + TypedHandleWorkflow.run, # type: ignore[arg-type] + id, ).result() assert isinstance(handle_result, TypedHandleResponse) @@ -4042,7 +4034,9 @@ async def do_stuff(buffer: MetricBuffer) -> None: assert any( u.metric.name == "temporal_workflow_task_execution_latency" # Took more than 3ms - and u.value > 3 and isinstance(u.value, int) and u.metric.unit == "ms" + and u.value > 3 + and isinstance(u.value, int) + and u.metric.unit == "ms" for u in updates ) assert any( @@ -4072,7 +4066,9 @@ async def do_stuff(buffer: MetricBuffer) -> None: assert any( u.metric.name == "temporal_workflow_task_execution_latency" # Took less than 3s - and u.value < 3 and isinstance(u.value, float) and u.metric.unit == "s" + and u.value < 3 + and isinstance(u.value, float) + and u.metric.unit == "s" for u in updates ) assert any( @@ -4709,8 +4705,7 @@ class FailureTypesScenario(IntEnum): WAIT_FOREVER = 3 -class FailureTypesCustomException(Exception): - ... +class FailureTypesCustomException(Exception): ... class FailureTypesWorkflowBase(ABC): diff --git a/tests/worker/workflow_sandbox/test_importer.py b/tests/worker/workflow_sandbox/test_importer.py index c7c2a3a5..26e076e4 100644 --- a/tests/worker/workflow_sandbox/test_importer.py +++ b/tests/worker/workflow_sandbox/test_importer.py @@ -70,9 +70,7 @@ def test_workflow_sandbox_importer_invalid_module_members(): with importer.applied(): import tests.worker.workflow_sandbox.testmodules.invalid_module_members - _ = ( - tests.worker.workflow_sandbox.testmodules.invalid_module_members.invalid_function - ) + _ = tests.worker.workflow_sandbox.testmodules.invalid_module_members.invalid_function # Cannot call qualified with pytest.raises(RestrictedWorkflowAccessError) as err: diff --git a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py index 9d926b32..19a1c69b 100644 --- a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py +++ b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.py @@ -2,6 +2,7 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: worker/workflow_sandbox/testmodules/proto/proto_message.proto """Generated protocol buffer code.""" + from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message @@ -26,7 +27,7 @@ (_message.Message,), { "DESCRIPTOR": _SOMEMESSAGE, - "__module__": "worker.workflow_sandbox.testmodules.proto.proto_message_pb2" + "__module__": "worker.workflow_sandbox.testmodules.proto.proto_message_pb2", # @@protoc_insertion_point(class_scope:worker.workflow_sandbox.testmodules.proto.SomeMessage) }, ) diff --git a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi index b08e8b30..db5f796b 100644 --- a/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi +++ b/tests/worker/workflow_sandbox/testmodules/proto/proto_message_pb2.pyi @@ -2,11 +2,13 @@ @generated by mypy-protobuf. Do not edit manually! isort:skip_file """ + import builtins +import sys + import google.protobuf.descriptor import google.protobuf.duration_pb2 import google.protobuf.message -import sys if sys.version_info >= (3, 8): import typing as typing_extensions