diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2b7a1efaa..9e3f5e2daa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ env: jobs: # Build and test the project build-lint-test: - timeout-minutes: 30 + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -60,9 +60,9 @@ jobs: - run: poe lint - run: mkdir junit-xml - run: poe test ${{matrix.pytestExtraArgs}} -s --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}.xml - timeout-minutes: 15 + timeout-minutes: 20 - run: poe test ${{matrix.pytestExtraArgs}} -s --workflow-environment time-skipping-v2 --junit-xml=junit-xml/${{ matrix.python }}--${{ matrix.os }}--time-skipping-v2.xml - timeout-minutes: 10 + timeout-minutes: 20 - name: "Upload junit-xml artifacts" uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 if: always() diff --git a/.github/workflows/label-issues.yml b/.github/workflows/label-issues.yml new file mode 100644 index 0000000000..ba3932e7be --- /dev/null +++ b/.github/workflows/label-issues.yml @@ -0,0 +1,12 @@ +name: Label issues with repository name + +on: + issues: + types: [opened] + +permissions: + issues: write + +jobs: + label: + uses: temporalio/.github/.github/workflows/label-issues.yml@main diff --git a/CHANGELOG.md b/CHANGELOG.md index fdab6aee78..a4604c4b51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,95 @@ This file contains assembled releases only. # Changelog +## [1.36.1] - 2026-11-13 + +### Changed + +- Disable single-batch workflow activation processing (workflow logic flag 2) by default to preserve legacy signal, condition-wait, and cancellation behavior for unflagged workflows. Histories that already recorded flag 2 continue to use single-batch processing. + +## [1.36.0] - 2026-11-10 + +### Added + +- Add experimental Nexus Handler Callbacks for standalone Nexus operations through `NexusClient.start_operation`. Use `temporalio.nexus.create_completion_callback` to send the result or failure and source context to a Nexus handler. + +- Workers that don't configure poller behavior now auto-enroll in poller autoscaling when the server enables it (`frontend.pollerAutoscalingAutoEnroll`); otherwise they keep using a fixed 5-poller maximum. + +- Add experimental envconfig extensions: `ClientConfig.load_client_connect_config` accepts `extensions` that read their own config from `profile..ext.` TOML tables (exposed as `ClientConfigProfile.ext` and never rejected by strict mode) and env vars, and contribute client plugins to the returned config's `plugins`. + +- Core: A local activity's `ActivityTask.Start` has `workflow_task` (field 21), with the started event id, attempt and start time of the workflow task in which Core dispatched it. `workflow_task` also has `previous_started_event_id`, `previous_attempt` and `previous_started_time`, which name the run's last completed workflow task, and `failed_tasks`, the started event ids of the run's last 100 failed or timed out workflow tasks. Retries that Core runs locally keep the value. Core leaves it unset for other activities. +- Core: Client environment config profiles include the raw TOML tables under `profile..ext`, keyed by extension name, for SDK envconfig extensions. Strict mode accepts any content under `ext`. The C bridge's profile JSON includes them as an `ext` object, with TOML datetimes as strings. + +- Client and worker plugins have a new `Plugin.version()` method. Worker plugins report it in worker heartbeats; override it or pass `version` to `SimplePlugin`. + +- Add Python 3.15 support. + +- Nexus operation handlers now propagate their `NexusSerializationContext` to the workflow updates they send, which encode their result, failure and rejection with it. Update handles decode them with the context the server returns. Requires a server that propagates the context. + +- Nexus operation handlers now propagate their `NexusSerializationContext` to the workflows and standalone activities they start, which encode their results and failures (and a standalone activity's heartbeat details) with it because these are returned to the Nexus caller. Clients decode them with the context the server returns, including handles obtained by ID and standalone Nexus operation handles. Requires a server that propagates the context. +- Added `activity.Info.nexus_serialization_context`. To complete a Nexus-started standalone activity asynchronously, pass it to `AsyncActivityHandle.with_context`. + +- Warn when `asyncio.TaskGroup` is created in a sandboxed workflow because its non-deterministic task cancellation order can cause replay failures. + +### Changed + +- Core: Poller pools now report their poller target to the server on each poll and in the worker heartbeat: the current target for autoscaling pools, the configured maximum for fixed-size pools. (We'll use this count on the server side for now for load balancing pollers between workers, and for creating a per-worker poller count metric.) + +- Process workflow activation jobs as a single batch by default (workflow logic flag 2), so signal and update handlers no longer run before other jobs delivered in the same workflow task, such as the random seed update after a reset. Histories that record this flag replay with the new ordering only on SDK 1.31.0 or later. +- Cancelling a Nexus operation handle after its synchronous response has already arrived now raises `CancelledError` when the handle is awaited, matching activities, instead of returning the result. + +- Update the `langsmith` extra to require `temporalio-langsmith>=0.1.1`. + +### :boom: Breaking Changes + +- Drop Python 3.10 support; Python 3.11 or newer is now required. + +- The workflow sandbox now restricts `time.clock_gettime()` and `time.clock_gettime_ns()` at runtime, like `time.time()` and `time.monotonic()`. Calling them from workflow code raises `RestrictedWorkflowAccessError`. + +- Experimental: a Temporal operation handler can now send only one signal (including signal-with-start) per invocation; a second raises a `BAD_REQUEST` error, unless the first signal failed. Signals from other Nexus operation handlers are not limited. + +- Core: Core now rejects activation responses with a nondeterminism error if the activation contained only updates and the response rejects every update but also includes another workflow command. SDKs must return only update rejections when all validators reject an update-only activation. + +- Regenerate Python bindings with grpcio-tools 1.49.1. The SDK now requires protobuf >=4.21.12 (protobuf 3 is no longer supported), and the optional grpc extra requires grpcio >=1.49.1. + +### Fixed + +- `temporalio.contrib.pydantic`: setting `ToJsonOptions` on the Pydantic payload converter no longer drops field aliases or serializes `inf`/`nan` as `null`; the JSON output now matches the default converter apart from the options themselves. + +- Core: Downloading an ephemeral dev or test server binary now retries transient HTTP failures, such as a `503` returned while a release is rolling out, with backoff instead of failing on the first attempt. + +- Fix the payload converter and failure converter losing their serialization context when external storage is configured. A converter that implements WithSerializationContext now gets the workflow, activity or other context whether or not external storage is enabled. + +- `temporalio.contrib.aws.lambda_worker`: `shutdown_hooks` now run before configuration teardown when an invocation fails or is cancelled after configuration setup succeeds, including task queue validation failures. + +- `temporalio.contrib.aws.lambda_worker.otel.apply_defaults` now creates its tracer provider once per process, so warm Lambda invocations no longer leak an OTLP span exporter thread and gRPC channel each time. + +- Core: A workflow task failure reported with the cause `WORKFLOW_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE` is now counted on `workflow_task_execution_failed` with `failure_reason="ExternalStorageError"`, matching activity failures with the storage cause. It was previously counted as `WorkflowError`. +- Core: Ephemeral dev and test servers now complete the automatic port reservation handshake on Linux and macOS before starting, preventing intermittent address-in-use errors during TCP teardown. +- Core: Resource-based worker tuners now read CPU usage and quotas from standard cgroup v1 mounts. Workers on cgroup v1 systems no longer fall back to host CPU usage and admit work based on understated container load. + +- `asyncio.sleep()`, `asyncio.wait_for()` and other asyncio timers no longer reuse the `timeout_summary` and Event Groups of an earlier `workflow.wait_condition()` call in the same task. + +- Fix `contrib.opentelemetry` `MetricsExporter` recording a metric under another metric's instrument or another attribute set's labels when instruments or attributes are created per call. It cached them by `id()`, which Python reuses once an object is freed. + +- Calling `Worker.run()` again on the same worker now raises `RuntimeError("Already started")` instead of a bridge panic. + +- Keep an empty TLS table when `ClientConfigProfile` and `ClientConfig` are converted to and from dictionaries, so a profile that enables TLS with default settings does not lose it. + +- Workflow workers without a payload codec or external storage skip the payload codec passes and the per-command serialization-context lookups on every activation and completion, restoring the workflow task and replay performance lost since 1.23. + +- Fix OpenTelemetryPlugin dropping the worker-side span for a rejected update or a failed query. An exception from an update validator or query handler does not fail the workflow task, so its span is now ended and exported with an error status. + +- Experimental: signals and signal-with-start sent from a Temporal operation handler now reuse the Nexus operation request ID, so a retried Nexus task no longer delivers the same signal twice. + +- Fix OpenTelemetry logger attribute typing and logger-provider test collection with OpenTelemetry 1.45 and newer by accepting string-keyed mappings without restricting attribute value types. + +- Core: Preserve queued queries across workflow eviction so requests for the same run are answered instead of silently dropped. +- Core: Rejection-only update tasks no longer dispatch local activities resumed from replay before validation, allowing those tasks to remain unrecorded in workflow history. +- Core: Preparing a legacy query now remains in replay mode, preventing unrecorded local activity attempts that could execute twice or leave the workflow stuck. + +- Fix argument conversion for activity methods that annotate `self` with `Self`. + ## [1.35.0] - 2026-10-28 ### Added diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7d5ce0de63..b3c1ad28b8 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -87,9 +87,11 @@ git submodule update --init poe update-core ``` -This fetches and updates Core to `origin/main`, importing user-facing entries from -`crates/sdk-core/CHANGELOG.md` over the old-to-new revision range. Use -`poe update-core --revision ` to select a particular locally available revision. +This fetches and updates Core to the head of `origin/main`, importing user-facing +entries from `crates/sdk-core/CHANGELOG.md` over the old-to-new revision range. +Use `poe update-core --latest-tag` to fetch tags and select the highest stable +`core-vX.Y.Z` version, or `poe update-core --revision ` to select a particular +locally available revision. These two options are mutually exclusive. Each affected category gets a fragment with an automatically generated whimsical filename. Core entries join the language entries in the same categories with a `Core: ` prefix. Wrapped Core prose becomes one line per entry; unsupported block @@ -100,13 +102,30 @@ Repeated updates import only the range since the previous checkout; an unchanged pin creates no fragments. Review and commit the updated pin and generated fragments together with the bridge manifest and lockfile. Python copies Core path dependency versions from the updated checkout into `temporalio/bridge/Cargo.toml` and runs -`cargo fetch` to refresh `Cargo.lock`, preserving existing valid registry pins. +`cargo update` to refresh all bridge dependencies in `Cargo.lock` to the latest +versions allowed by their requirements. The command does not stage or commit changes or resolve Rust API compatibility issues. If dependency refresh fails, inspect the updated pin, fragments, and manifest before retrying. -If Core protobuf definitions changed, run `poe gen-protos` and include the -regenerated bindings in the update PR. +The command then runs `poe gen-protos`. Include regenerated bindings in the update +PR. + +## Preparing a Release + +Run `poe prepare-release ` (optionally with `--date YYYY-MM-DD`) from a +clean worktree. This creates `chore/release-` from `origin/main`, runs the +Core update with `--latest-tag`, and then prepares the Python versions, lockfile, and +changelog. It commits the Core and Python changes together, pushes the release +branch, and opens a PR. A failed Core update or proto generation stops preparation +before changelog fragments are consumed. Review any partial changes before retrying. +Rerunning for the same version rebuilds the local release branch from `origin/main`, +replacing prior release-branch commits, and updates the remote branch using an +explicit force-with-lease. If the remote branch changes during preparation, the +push fails rather than overwriting that change. An existing open release PR is +reused, preserving its description and discussion. +The optional `--date` sets the date in the changelog release heading and defaults +to today; it does not schedule publication. ## Things to Avoid diff --git a/README.md b/README.md index 9e5f40e5ba..e0048a088a 100644 --- a/README.md +++ b/README.md @@ -885,6 +885,10 @@ deterministic: * `asyncio.as_completed()` - use `workflow.as_completed()` * `asyncio.wait()` - use `workflow.wait()` +`asyncio.TaskGroup` tracks tasks in a `set()`, so cancellation order can differ between execution and replay. +This can cause non-determinism errors, even if the workflow catches the task group's exception and completes +successfully. The sandbox warns when a task group is created. + #### Asyncio Cancellation Cancellation is done using `asyncio` [task cancellation](https://docs.python.org/3/library/asyncio-task.html#task-cancellation). diff --git a/changelog/added/dancing-firefly.md b/changelog/added/dancing-firefly.md deleted file mode 100644 index c560e42df5..0000000000 --- a/changelog/added/dancing-firefly.md +++ /dev/null @@ -1 +0,0 @@ -Add experimental Nexus Handler Callbacks for standalone Nexus operations through `NexusClient.start_operation`. Use `temporalio.nexus.create_completion_callback` to send the result or failure and source context to a Nexus handler. diff --git a/changelog/added/eager-poller-pelican.md b/changelog/added/eager-poller-pelican.md deleted file mode 100644 index 9ccc958932..0000000000 --- a/changelog/added/eager-poller-pelican.md +++ /dev/null @@ -1 +0,0 @@ -Workers that don't configure poller behavior now auto-enroll in poller autoscaling when the server enables it (`frontend.pollerAutoscalingAutoEnroll`); otherwise they keep using a fixed 5-poller maximum. diff --git a/changelog/added/extension-extraordinaire.md b/changelog/added/extension-extraordinaire.md deleted file mode 100644 index f4dd976cdb..0000000000 --- a/changelog/added/extension-extraordinaire.md +++ /dev/null @@ -1 +0,0 @@ -Add experimental envconfig extensions: `ClientConfig.load_client_connect_config` accepts `extensions` that read their own config from `profile..ext.` TOML tables (exposed as `ClientConfigProfile.ext` and never rejected by strict mode) and env vars, and contribute client plugins to the returned config's `plugins`. diff --git a/changelog/added/headier-mackenzie.md b/changelog/added/headier-mackenzie.md deleted file mode 100644 index 66ea4d3254..0000000000 --- a/changelog/added/headier-mackenzie.md +++ /dev/null @@ -1,2 +0,0 @@ -Core: A local activity's `ActivityTask.Start` has `workflow_task` (field 21), with the started event id, attempt and start time of the workflow task in which Core dispatched it. `workflow_task` also has `previous_started_event_id`, `previous_attempt` and `previous_started_time`, which name the run's last completed workflow task, and `failed_tasks`, the started event ids of the run's last 100 failed or timed out workflow tasks. Retries that Core runs locally keep the value. Core leaves it unset for other activities. -Core: Client environment config profiles include the raw TOML tables under `profile..ext`, keyed by extension name, for SDK envconfig extensions. Strict mode accepts any content under `ext`. The C bridge's profile JSON includes them as an `ext` object, with TOML datetimes as strings. diff --git a/changelog/added/humming-version-kazoo.md b/changelog/added/humming-version-kazoo.md deleted file mode 100644 index e614ed5313..0000000000 --- a/changelog/added/humming-version-kazoo.md +++ /dev/null @@ -1 +0,0 @@ -Client and worker plugins have a new `Plugin.version()` method. Worker plugins report it in worker heartbeats; override it or pass `version` to `SimplePlugin`. diff --git a/changelog/added/leaping-python.md b/changelog/added/leaping-python.md deleted file mode 100644 index 7f71780192..0000000000 --- a/changelog/added/leaping-python.md +++ /dev/null @@ -1 +0,0 @@ -Add Python 3.15 support. diff --git a/changelog/added/tumbling-toucan.md b/changelog/added/tumbling-toucan.md deleted file mode 100644 index baf2d82842..0000000000 --- a/changelog/added/tumbling-toucan.md +++ /dev/null @@ -1 +0,0 @@ -Nexus operation handlers now propagate their `NexusSerializationContext` to the workflow updates they send, which encode their result, failure and rejection with it. Update handles decode them with the context the server returns. Requires a server that propagates the context. diff --git a/changelog/added/wandering-namespace-otter.md b/changelog/added/wandering-namespace-otter.md new file mode 100644 index 0000000000..1bed3ea13d --- /dev/null +++ b/changelog/added/wandering-namespace-otter.md @@ -0,0 +1 @@ +Experimental: external storage store and select contexts now have an optional `namespace` holding the namespace of the client or worker performing the operation. diff --git a/changelog/added/wandering-wombat.md b/changelog/added/wandering-wombat.md deleted file mode 100644 index e1281c2b27..0000000000 --- a/changelog/added/wandering-wombat.md +++ /dev/null @@ -1,2 +0,0 @@ -Nexus operation handlers now propagate their `NexusSerializationContext` to the workflows and standalone activities they start, which encode their results and failures (and a standalone activity's heartbeat details) with it because these are returned to the Nexus caller. Clients decode them with the context the server returns, including handles obtained by ID and standalone Nexus operation handles. Requires a server that propagates the context. -Added `activity.Info.nexus_serialization_context`. To complete a Nexus-started standalone activity asynchronously, pass it to `AsyncActivityHandle.with_context`. diff --git a/changelog/breaking-changes/dancing-python.md b/changelog/breaking-changes/dancing-python.md deleted file mode 100644 index 079831a0ef..0000000000 --- a/changelog/breaking-changes/dancing-python.md +++ /dev/null @@ -1 +0,0 @@ -Drop Python 3.10 support; Python 3.11 or newer is now required. diff --git a/changelog/breaking-changes/punctual-platypus.md b/changelog/breaking-changes/punctual-platypus.md deleted file mode 100644 index 8492768c79..0000000000 --- a/changelog/breaking-changes/punctual-platypus.md +++ /dev/null @@ -1 +0,0 @@ -The workflow sandbox now restricts `time.clock_gettime()` and `time.clock_gettime_ns()` at runtime, like `time.time()` and `time.monotonic()`. Calling them from workflow code raises `RestrictedWorkflowAccessError`. diff --git a/changelog/breaking-changes/solitary-semaphore-sloth.md b/changelog/breaking-changes/solitary-semaphore-sloth.md deleted file mode 100644 index 1c08671f3b..0000000000 --- a/changelog/breaking-changes/solitary-semaphore-sloth.md +++ /dev/null @@ -1 +0,0 @@ -Experimental: a Temporal operation handler can now send only one signal (including signal-with-start) per invocation; a second raises a `BAD_REQUEST` error, unless the first signal failed. Signals from other Nexus operation handlers are not limited. diff --git a/changelog/breaking-changes/unrallying-denice.md b/changelog/breaking-changes/unrallying-denice.md deleted file mode 100644 index ebf77e4244..0000000000 --- a/changelog/breaking-changes/unrallying-denice.md +++ /dev/null @@ -1 +0,0 @@ -Core: Core now rejects activation responses with a nondeterminism error if the activation contained only updates and the response rejects every update but also includes another workflow command. SDKs must return only update rejections when all validators reject an update-only activation. diff --git a/changelog/breaking-changes/waltzing-protobuf.md b/changelog/breaking-changes/waltzing-protobuf.md deleted file mode 100644 index 0bd002b3a7..0000000000 --- a/changelog/breaking-changes/waltzing-protobuf.md +++ /dev/null @@ -1 +0,0 @@ -Regenerate Python bindings with grpcio-tools 1.49.1. The SDK now requires protobuf >=4.21.12 (protobuf 3 is no longer supported), and the optional grpc extra requires grpcio >=1.49.1. diff --git a/changelog/changed/batched-bumblebee.md b/changelog/changed/batched-bumblebee.md deleted file mode 100644 index 1dd476f5a6..0000000000 --- a/changelog/changed/batched-bumblebee.md +++ /dev/null @@ -1,2 +0,0 @@ -Process workflow activation jobs as a single batch by default (workflow logic flag 2), so signal and update handlers no longer run before other jobs delivered in the same workflow task, such as the random seed update after a reset. Histories that record this flag replay with the new ordering only on SDK 1.31.0 or later. -Cancelling a Nexus operation handle after its synchronous response has already arrived now raises `CancelledError` when the handle is awaited, matching activities, instead of returning the result. diff --git a/changelog/changed/jaunty-namespace-heron.md b/changelog/changed/jaunty-namespace-heron.md new file mode 100644 index 0000000000..123c35fa64 --- /dev/null +++ b/changelog/changed/jaunty-namespace-heron.md @@ -0,0 +1 @@ +Experimental: the S3 and GCS storage drivers now write payloads stored without a target under `v0/ns/{namespace}/d/sha256/...`, using the namespace of the storing client or worker (`null` when it is unknown), instead of `v0/d/sha256/...`. Existing objects remain retrievable. diff --git a/changelog/changed/jolly-tracing-teapot.md b/changelog/changed/jolly-tracing-teapot.md deleted file mode 100644 index 3db26d61e0..0000000000 --- a/changelog/changed/jolly-tracing-teapot.md +++ /dev/null @@ -1 +0,0 @@ -Update the `langsmith` extra to require `temporalio-langsmith>=0.1.1`. diff --git a/changelog/fixed/aliased-armadillo.md b/changelog/fixed/aliased-armadillo.md deleted file mode 100644 index 685653ccba..0000000000 --- a/changelog/fixed/aliased-armadillo.md +++ /dev/null @@ -1 +0,0 @@ -`temporalio.contrib.pydantic`: setting `ToJsonOptions` on the Pydantic payload converter no longer drops field aliases or serializes `inf`/`nan` as `null`; the JSON output now matches the default converter apart from the options themselves. diff --git a/changelog/fixed/contextual-courier-crab.md b/changelog/fixed/contextual-courier-crab.md deleted file mode 100644 index cad71adcd3..0000000000 --- a/changelog/fixed/contextual-courier-crab.md +++ /dev/null @@ -1 +0,0 @@ -Fix the payload converter and failure converter losing their serialization context when external storage is configured. A converter that implements WithSerializationContext now gets the workflow, activity or other context whether or not external storage is enabled. diff --git a/changelog/fixed/fickle-passthrough-ferret.md b/changelog/fixed/fickle-passthrough-ferret.md new file mode 100644 index 0000000000..a935fb4872 --- /dev/null +++ b/changelog/fixed/fickle-passthrough-ferret.md @@ -0,0 +1 @@ +Fix `workflow.unsafe.imports_passed_through()` reloading a submodule in the sandbox when it is imported with `from package import module` from a workflow in the same package. diff --git a/changelog/fixed/headier-mackenzie.md b/changelog/fixed/headier-mackenzie.md deleted file mode 100644 index 2c099ac2d5..0000000000 --- a/changelog/fixed/headier-mackenzie.md +++ /dev/null @@ -1,3 +0,0 @@ -Core: A workflow task failure reported with the cause `WORKFLOW_TASK_FAILED_CAUSE_EXTERNAL_STORAGE_FAILURE` is now counted on `workflow_task_execution_failed` with `failure_reason="ExternalStorageError"`, matching activity failures with the storage cause. It was previously counted as `WorkflowError`. -Core: Ephemeral dev and test servers now complete the automatic port reservation handshake on Linux and macOS before starting, preventing intermittent address-in-use errors during TCP teardown. -Core: Resource-based worker tuners now read CPU usage and quotas from standard cgroup v1 mounts. Workers on cgroup v1 systems no longer fall back to host CPU usage and admit work based on understated container load. diff --git a/changelog/fixed/leaky-lantern-fish.md b/changelog/fixed/leaky-lantern-fish.md deleted file mode 100644 index 5071825a39..0000000000 --- a/changelog/fixed/leaky-lantern-fish.md +++ /dev/null @@ -1 +0,0 @@ -`asyncio.sleep()`, `asyncio.wait_for()` and other asyncio timers no longer reuse the `timeout_summary` and Event Groups of an earlier `workflow.wait_condition()` call in the same task. diff --git a/changelog/fixed/mislabeled-marmoset.md b/changelog/fixed/mislabeled-marmoset.md deleted file mode 100644 index 10a556b62d..0000000000 --- a/changelog/fixed/mislabeled-marmoset.md +++ /dev/null @@ -1 +0,0 @@ -Fix `contrib.opentelemetry` `MetricsExporter` recording a metric under another metric's instrument or another attribute set's labels when instruments or attributes are created per call. It cached them by `id()`, which Python reuses once an object is freed. diff --git a/changelog/fixed/observant-worker-owl.md b/changelog/fixed/observant-worker-owl.md deleted file mode 100644 index af33f228b8..0000000000 --- a/changelog/fixed/observant-worker-owl.md +++ /dev/null @@ -1 +0,0 @@ -Calling `Worker.run()` again on the same worker now raises `RuntimeError("Already started")` instead of a bridge panic. diff --git a/changelog/fixed/patient-evicting-platypus.md b/changelog/fixed/patient-evicting-platypus.md new file mode 100644 index 0000000000..d93baab972 --- /dev/null +++ b/changelog/fixed/patient-evicting-platypus.md @@ -0,0 +1 @@ +Fix workflow eviction getting stuck after a deadlock interrupt during task completion. Eviction now waits for timed-out activations to finish, avoids overlapping eviction retries, and tolerates lost done callbacks for finished tasks. diff --git a/changelog/fixed/persistent-pelican.md b/changelog/fixed/persistent-pelican.md deleted file mode 100644 index 27db3dc930..0000000000 --- a/changelog/fixed/persistent-pelican.md +++ /dev/null @@ -1 +0,0 @@ -Keep an empty TLS table when `ClientConfigProfile` and `ClientConfig` are converted to and from dictionaries, so a profile that enables TLS with default settings does not lose it. diff --git a/changelog/fixed/sleepy-tokio-fireflies.md b/changelog/fixed/sleepy-tokio-fireflies.md new file mode 100644 index 0000000000..8cebb6233c --- /dev/null +++ b/changelog/fixed/sleepy-tokio-fireflies.md @@ -0,0 +1 @@ +Shut down native runtimes before Python interpreter finalization to prevent short-lived clients from crashing or hanging while Rust callbacks finish. diff --git a/changelog/fixed/traceable-query-quail.md b/changelog/fixed/traceable-query-quail.md deleted file mode 100644 index a2bd7f1a80..0000000000 --- a/changelog/fixed/traceable-query-quail.md +++ /dev/null @@ -1 +0,0 @@ -Fix OpenTelemetryPlugin dropping the worker-side span for a rejected update or a failed query. An exception from an update validator or query handler does not fail the workflow task, so its span is now ended and exported with an error status. diff --git a/changelog/fixed/twice-shy-carrier-pigeon.md b/changelog/fixed/twice-shy-carrier-pigeon.md deleted file mode 100644 index cf1b469cab..0000000000 --- a/changelog/fixed/twice-shy-carrier-pigeon.md +++ /dev/null @@ -1 +0,0 @@ -Experimental: signals and signal-with-start sent from a Temporal operation handler now reuse the Nexus operation request ID, so a retried Nexus task no longer delivers the same signal twice. diff --git a/changelog/fixed/typing-tapir.md b/changelog/fixed/typing-tapir.md deleted file mode 100644 index f9979ad375..0000000000 --- a/changelog/fixed/typing-tapir.md +++ /dev/null @@ -1 +0,0 @@ -Fix OpenTelemetry logger attribute typing and logger-provider test collection with OpenTelemetry 1.45 and newer by accepting string-keyed mappings without restricting attribute value types. diff --git a/changelog/fixed/unrallying-denice.md b/changelog/fixed/unrallying-denice.md deleted file mode 100644 index 22c5b0d2aa..0000000000 --- a/changelog/fixed/unrallying-denice.md +++ /dev/null @@ -1,3 +0,0 @@ -Core: Preserve queued queries across workflow eviction so requests for the same run are answered instead of silently dropped. -Core: Rejection-only update tasks no longer dispatch local activities resumed from replay before validation, allowing those tasks to remain unrecorded in workflow history. -Core: Preparing a legacy query now remains in replay mode, preventing unrecorded local activity attempts that could execute twice or leave the workflow stuck. diff --git a/changelog/fixed/wandering-main-module.md b/changelog/fixed/wandering-main-module.md new file mode 100644 index 0000000000..a7d774c5bc --- /dev/null +++ b/changelog/fixed/wandering-main-module.md @@ -0,0 +1 @@ +Fix workflow validation failing with `ModuleNotFoundError: No module named '__temporal_main__'` for a workflow defined in `__main__` when the sandbox passes all modules through, or passes `__temporal_main__` through. diff --git a/changelog/fixed/whistling-receiver.md b/changelog/fixed/whistling-receiver.md deleted file mode 100644 index e6bef9c822..0000000000 --- a/changelog/fixed/whistling-receiver.md +++ /dev/null @@ -1 +0,0 @@ -Fix argument conversion for activity methods that annotate `self` with `Self`. diff --git a/pyproject.toml b/pyproject.toml index db863941d9..6c41cbba54 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "temporalio" -version = "1.35.0" +version = "1.36.1" description = "Temporal.io Python SDK" authors = [{ name = "Temporal Technologies Inc", email = "sdk@temporal.io" }] requires-python = ">=3.11" @@ -68,7 +68,8 @@ dev = [ "pydocstyle>=6.3.0,<7", "pydoctor>=25.10.1,<26", "pyright==1.1.414", - "pytest~=9.0", + # pytest-asyncio 0.21 relies on pytest internals removed in 9.2. + "pytest>=9.0,<9.2", "pytest-asyncio>=0.21,<0.22", "pytest-timeout~=2.2", "ruff>=0.15.12,<0.16", @@ -128,7 +129,8 @@ lint-types = [ ] run-bench = "uv run python scripts/run_bench.py" test = "uv run pytest -n auto --dist=worksteal" -update-core = { cmd = "uv run python scripts/update_core.py", help = "Update Core, import changelog fragments, and refresh bridge dependencies" } +update-core = { cmd = "uv run python scripts/update_core.py", help = "Update Core to origin/main (or --latest-tag), import changelog fragments, refresh bridge dependencies, and generate protos" } +prepare-release = { cmd = "uv run python scripts/prepare_release.py --update-core", help = "Update Core and prepare a release PR" } [tool.pytest.ini_options] diff --git a/scripts/prepare_release.py b/scripts/prepare_release.py index 4bbc0df103..6edd82077b 100644 --- a/scripts/prepare_release.py +++ b/scripts/prepare_release.py @@ -14,6 +14,7 @@ sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1])) from scripts.changelog import prepare_changelog +from scripts.update_core import update_core VERSION_RE = re.compile(r"[0-9]+(?:\.[0-9]+)+(?:[a-zA-Z0-9_.+-]+)?") _RELEASE_FILES = ( @@ -57,14 +58,25 @@ def replace_service_version(text: str, version: str) -> str: ) -def create_release_branch(repo_root: pathlib.Path, version: str) -> None: +def create_release_branch(repo_root: pathlib.Path, version: str) -> str: + """Rebuild the release branch and return its expected remote commit, if any.""" subprocess.run(["git", "fetch", "origin", "main"], cwd=repo_root, check=True) + branch = f"chore/release-{version}" + result = subprocess.run( + ["git", "ls-remote", "--heads", "origin", f"refs/heads/{branch}"], + cwd=repo_root, + check=True, + capture_output=True, + text=True, + ) + remote_commit = result.stdout.split()[0] if result.stdout.strip() else "" subprocess.run( - ["git", "switch", "--create", f"chore/release-{version}", "origin/main"], + ["git", "switch", "--force-create", branch, "origin/main"], cwd=repo_root, check=True, ) subprocess.run(["git", "submodule", "update", "--init"], cwd=repo_root, check=True) + return remote_commit def changed_files(repo_root: pathlib.Path) -> set[str]: @@ -103,6 +115,11 @@ def ensure_only_release_changes( def commit_release_changes( repo_root: pathlib.Path, version: str, consumed_paths: Sequence[str] = () ) -> None: + subprocess.run( + ["git", "add", "--all", "--", *_RELEASE_FILES, *consumed_paths], + cwd=repo_root, + check=True, + ) subprocess.run( [ "git", @@ -118,10 +135,19 @@ def commit_release_changes( ) -def push_release_branch(repo_root: pathlib.Path, version: str) -> None: +def push_release_branch( + repo_root: pathlib.Path, version: str, remote_commit: str = "" +) -> None: branch = f"chore/release-{version}" subprocess.run( - ["git", "push", "--set-upstream", "origin", branch], + [ + "git", + "push", + f"--force-with-lease=refs/heads/{branch}:{remote_commit}", + "--set-upstream", + "origin", + branch, + ], cwd=repo_root, check=True, ) @@ -129,6 +155,30 @@ def push_release_branch(repo_root: pathlib.Path, version: str) -> None: def create_release_pr(repo_root: pathlib.Path, version: str) -> None: branch = f"chore/release-{version}" + result = subprocess.run( + [ + "gh", + "pr", + "list", + "--base", + "main", + "--head", + branch, + "--state", + "open", + "--json", + "url", + "--jq", + ".[0].url // empty", + ], + cwd=repo_root, + check=True, + capture_output=True, + text=True, + ) + if result.stdout.strip(): + print(f"Updated existing release PR: {result.stdout.strip()}") + return subprocess.run( [ "gh", @@ -169,6 +219,7 @@ def prepare_release_files( release_date: datetime.date, *, skip_lock: bool = False, + core_changes: Sequence[str] = (), ) -> tuple[str, ...]: """Update Python versions and lockfile before preparing the shared changelog.""" pyproject_path = repo_root / "pyproject.toml" @@ -185,7 +236,7 @@ def prepare_release_files( service_path.write_text(service_text, encoding="utf-8") if not skip_lock: subprocess.run(["uv", "lock"], cwd=repo_root, check=True) - ensure_only_release_changes(repo_root) + ensure_only_release_changes(repo_root, core_changes) prepare_changelog(repo_root, version, release_date) result = subprocess.run( ["git", "ls-files", "--deleted", "-z", "--", "changelog"], @@ -215,23 +266,37 @@ def main(argv: Sequence[str] | None = None) -> None: action="store_true", help="Do not run 'uv lock'. Intended only for local testing.", ) + parser.add_argument( + "--update-core", + action="store_true", + help="Update to the latest Core release and regenerate protos on the release branch.", + ) args = parser.parse_args(argv) repo_root = pathlib.Path(__file__).resolve().parents[1] version = validate_version(args.version) release_date = parse_date(args.date) ensure_clean_worktree(repo_root) - create_release_branch(repo_root, version) + remote_commit = create_release_branch(repo_root, version) + core_changes: set[str] = set() + if args.update_core: + update_core(repo_root, ["--latest-tag"]) + core_changes = changed_files(repo_root) consumed = prepare_release_files( - repo_root, version, release_date, skip_lock=args.skip_lock + repo_root, + version, + release_date, + skip_lock=args.skip_lock, + core_changes=tuple(sorted(core_changes)), ) - ensure_only_release_changes(repo_root, consumed) - commit_release_changes(repo_root, version, consumed) - push_release_branch(repo_root, version) + ensure_only_release_changes(repo_root, (*consumed, *core_changes)) + extra_paths = tuple(sorted(changed_files(repo_root) - set(_RELEASE_FILES))) + commit_release_changes(repo_root, version, extra_paths) + push_release_branch(repo_root, version, remote_commit) create_release_pr(repo_root, version) print( - f"Prepared release {version} dated {release_date.isoformat()} and opened a PR" + f"Prepared release {version} dated {release_date.isoformat()} and created or updated a PR" ) diff --git a/scripts/update_core.py b/scripts/update_core.py index e678075af3..d961cbc763 100644 --- a/scripts/update_core.py +++ b/scripts/update_core.py @@ -1,8 +1,10 @@ -"""Update SDK Core and synchronize the Python bridge's Cargo dependencies.""" +"""Update SDK Core, bridge dependencies, and generated protobuf bindings.""" from __future__ import annotations +import argparse import pathlib +import re import subprocess import sys from collections.abc import MutableMapping, Sequence @@ -45,11 +47,43 @@ def update_bridge_dependencies(repo_root: pathlib.Path) -> None: updated = tomlkit.dumps(manifest) if updated != original: manifest_path.write_text(updated) - subprocess.run(["cargo", "fetch"], cwd=bridge, check=True) + subprocess.run(["cargo", "update"], cwd=bridge, check=True) + + +def latest_core_tag(repo_root: pathlib.Path) -> str: + """Fetch Core tags and select the highest stable Core version.""" + core = repo_root / "temporalio/bridge/sdk-core" + if not (core / ".git").exists(): + raise RuntimeError("Initialize sdk-core with 'git submodule update --init'") + subprocess.run(["git", "fetch", "origin", "--tags"], cwd=core, check=True) + result = subprocess.run( + ["git", "tag", "--list", "core-v*"], + cwd=core, + check=True, + capture_output=True, + text=True, + ) + versions = { + tag: tuple(map(int, match.groups())) + for tag in result.stdout.splitlines() + if (match := re.fullmatch(r"core-v(\d+)\.(\d+)\.(\d+)", tag)) + } + if not versions: + raise RuntimeError("No stable core-v* release tags found in sdk-core") + return max(versions, key=versions.__getitem__) def update_core(repo_root: pathlib.Path, args: Sequence[str]) -> None: - """Import Core changes before updating Python's bridge manifest and lockfile.""" + """Import Core changes, refresh bridge dependencies, and generate protos.""" + parser = argparse.ArgumentParser(add_help=False) + target = parser.add_mutually_exclusive_group() + target.add_argument("--latest-tag", action="store_true") + target.add_argument("--revision") + options, args = parser.parse_known_args(args) + if options.latest_tag: + args.extend(["--revision", latest_core_tag(repo_root)]) + elif options.revision is not None: + args.extend(["--revision", options.revision]) print( run_tool( repo_root, @@ -59,6 +93,7 @@ def update_core(repo_root: pathlib.Path, args: Sequence[str]) -> None: flush=True, ) update_bridge_dependencies(repo_root) + subprocess.run(["poe", "gen-protos"], cwd=repo_root, check=True) if __name__ == "__main__": @@ -66,6 +101,10 @@ def update_core(repo_root: pathlib.Path, args: Sequence[str]) -> None: args = sys.argv[1:] if "--help" in args or "-h" in args: print(__doc__) + print( + "Defaults to the fetched origin/main head. Use --latest-tag to select " + "the highest stable core-vX.Y.Z tag instead (cannot combine with --revision)." + ) print(run_tool(repo_root, ["update-core", "--help"]), end="") else: update_core(repo_root, args) diff --git a/temporalio/api/taskqueue/v1/__init__.py b/temporalio/api/taskqueue/v1/__init__.py index 98595069b5..325d6ab8e5 100644 --- a/temporalio/api/taskqueue/v1/__init__.py +++ b/temporalio/api/taskqueue/v1/__init__.py @@ -7,6 +7,7 @@ PollerGroupInfo, PollerGroupsInfo, PollerInfo, + PollerPoolInfo, PollerScalingDecision, RampByPercentage, RateLimit, @@ -37,6 +38,7 @@ "PollerGroupInfo", "PollerGroupsInfo", "PollerInfo", + "PollerPoolInfo", "PollerScalingDecision", "RampByPercentage", "RateLimit", diff --git a/temporalio/api/taskqueue/v1/message_pb2.py b/temporalio/api/taskqueue/v1/message_pb2.py index 696a2f061e..dc62a7f520 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.py +++ b/temporalio/api/taskqueue/v1/message_pb2.py @@ -28,7 +28,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xc2\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\x12\x1c\n\x14rate_limiting_active\x18\x05 \x01(\x08"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"-\n\x0fPollerGroupInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06weight\x18\x02 \x01(\x02"f\n\x10PollerGroupsInfo\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x41\n\rpoller_groups\x18\x02 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfo">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' + b'\n\'temporal/api/taskqueue/v1/message.proto\x12\x19temporal.api.taskqueue.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a$temporal/api/common/v1/message.proto\x1a(temporal/api/deployment/v1/message.proto"b\n\tTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04kind\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueKind\x12\x13\n\x0bnormal_name\x18\x03 \x01(\t"O\n\x11TaskQueueMetadata\x12:\n\x14max_tasks_per_second\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue"(\n\x0ePollerPoolInfo\x12\x16\n\x0etarget_pollers\x18\x01 \x01(\x05"\xda\x02\n\x17TaskQueueVersioningInfo\x12W\n\x1a\x63urrent_deployment_version\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0f\x63urrent_version\x18\x01 \x01(\tB\x02\x18\x01\x12W\n\x1aramping_deployment_version\x18\t \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1b\n\x0framping_version\x18\x02 \x01(\tB\x02\x18\x01\x12"\n\x1aramping_version_percentage\x18\x03 \x01(\x02\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"W\n\x19TaskQueueVersionSelection\x12\x11\n\tbuild_ids\x18\x01 \x03(\t\x12\x13\n\x0bunversioned\x18\x02 \x01(\x08\x12\x12\n\nall_active\x18\x03 \x01(\x08"\x95\x02\n\x14TaskQueueVersionInfo\x12R\n\ntypes_info\x18\x01 \x03(\x0b\x32>.temporal.api.taskqueue.v1.TaskQueueVersionInfo.TypesInfoEntry\x12I\n\x11task_reachability\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.BuildIdTaskReachability\x1a^\n\x0eTypesInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12;\n\x05value\x18\x02 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueTypeInfo:\x02\x38\x01"\x85\x01\n\x11TaskQueueTypeInfo\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats"\xc2\x01\n\x0eTaskQueueStats\x12!\n\x19\x61pproximate_backlog_count\x18\x01 \x01(\x03\x12:\n\x17\x61pproximate_backlog_age\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x16\n\x0etasks_add_rate\x18\x03 \x01(\x02\x12\x1b\n\x13tasks_dispatch_rate\x18\x04 \x01(\x02\x12\x1c\n\x14rate_limiting_active\x18\x05 \x01(\x08"\xac\x01\n\x0fTaskQueueStatus\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x01 \x01(\x03\x12\x12\n\nread_level\x18\x02 \x01(\x03\x12\x11\n\tack_level\x18\x03 \x01(\x03\x12\x17\n\x0frate_per_second\x18\x04 \x01(\x01\x12=\n\rtask_id_block\x18\x05 \x01(\x0b\x32&.temporal.api.taskqueue.v1.TaskIdBlock"/\n\x0bTaskIdBlock\x12\x10\n\x08start_id\x18\x01 \x01(\x03\x12\x0e\n\x06\x65nd_id\x18\x02 \x01(\x03"B\n\x1aTaskQueuePartitionMetadata\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x17\n\x0fowner_host_name\x18\x02 \x01(\t"\x9a\x02\n\nPollerInfo\x12\x34\n\x10last_access_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x17\n\x0frate_per_second\x18\x03 \x01(\x01\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"\x9a\x01\n\x19StickyExecutionAttributes\x12?\n\x11worker_task_queue\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_start_timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration")\n\x14\x43ompatibleVersionSet\x12\x11\n\tbuild_ids\x18\x01 \x03(\t"j\n\x15TaskQueueReachability\x12\x12\n\ntask_queue\x18\x01 \x01(\t\x12=\n\x0creachability\x18\x02 \x03(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"z\n\x13\x42uildIdReachability\x12\x10\n\x08\x62uild_id\x18\x01 \x01(\t\x12Q\n\x17task_queue_reachability\x18\x02 \x03(\x0b\x32\x30.temporal.api.taskqueue.v1.TaskQueueReachability"+\n\x10RampByPercentage\x12\x17\n\x0framp_percentage\x18\x01 \x01(\x02"\x80\x01\n\x15\x42uildIdAssignmentRule\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\x46\n\x0fpercentage_ramp\x18\x03 \x01(\x0b\x32+.temporal.api.taskqueue.v1.RampByPercentageH\x00\x42\x06\n\x04ramp"Q\n\x1d\x43ompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x12\x17\n\x0ftarget_build_id\x18\x02 \x01(\t"\x93\x01\n TimestampedBuildIdAssignmentRule\x12>\n\x04rule\x18\x01 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xa3\x01\n(TimestampedCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"-\n\x0fPollerGroupInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06weight\x18\x02 \x01(\x02"f\n\x10PollerGroupsInfo\x12\x0f\n\x07version\x18\x01 \x01(\x03\x12\x41\n\rpoller_groups\x18\x02 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfo">\n\x15PollerScalingDecision\x12%\n\x1dpoll_request_delta_suggestion\x18\x01 \x01(\x05"(\n\tRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02"j\n\x0e\x43onfigMetadata\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x17\n\x0fupdate_identity\x18\x02 \x01(\t\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\x88\x01\n\x0fRateLimitConfig\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.ConfigMetadata"\xd9\x02\n\x0fTaskQueueConfig\x12\x44\n\x10queue_rate_limit\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12T\n fairness_keys_rate_limit_default\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.RateLimitConfig\x12j\n\x19\x66\x61irness_weight_overrides\x18\x03 \x03(\x0b\x32G.temporal.api.taskqueue.v1.TaskQueueConfig.FairnessWeightOverridesEntry\x1a>\n\x1c\x46\x61irnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01\x42\x98\x01\n\x1cio.temporal.api.taskqueue.v1B\x0cMessageProtoP\x01Z)go.temporal.io/api/taskqueue/v1;taskqueue\xaa\x02\x1bTemporalio.Api.TaskQueue.V1\xea\x02\x1eTemporalio::Api::TaskQueue::V1b\x06proto3' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) @@ -56,58 +56,60 @@ _TASKQUEUE._serialized_end = 385 _TASKQUEUEMETADATA._serialized_start = 387 _TASKQUEUEMETADATA._serialized_end = 466 - _TASKQUEUEVERSIONINGINFO._serialized_start = 469 - _TASKQUEUEVERSIONINGINFO._serialized_end = 815 - _TASKQUEUEVERSIONSELECTION._serialized_start = 817 - _TASKQUEUEVERSIONSELECTION._serialized_end = 904 - _TASKQUEUEVERSIONINFO._serialized_start = 907 - _TASKQUEUEVERSIONINFO._serialized_end = 1184 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 1090 - _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 1184 - _TASKQUEUETYPEINFO._serialized_start = 1187 - _TASKQUEUETYPEINFO._serialized_end = 1320 - _TASKQUEUESTATS._serialized_start = 1323 - _TASKQUEUESTATS._serialized_end = 1517 - _TASKQUEUESTATUS._serialized_start = 1520 - _TASKQUEUESTATUS._serialized_end = 1692 - _TASKIDBLOCK._serialized_start = 1694 - _TASKIDBLOCK._serialized_end = 1741 - _TASKQUEUEPARTITIONMETADATA._serialized_start = 1743 - _TASKQUEUEPARTITIONMETADATA._serialized_end = 1809 - _POLLERINFO._serialized_start = 1812 - _POLLERINFO._serialized_end = 2094 - _STICKYEXECUTIONATTRIBUTES._serialized_start = 2097 - _STICKYEXECUTIONATTRIBUTES._serialized_end = 2251 - _COMPATIBLEVERSIONSET._serialized_start = 2253 - _COMPATIBLEVERSIONSET._serialized_end = 2294 - _TASKQUEUEREACHABILITY._serialized_start = 2296 - _TASKQUEUEREACHABILITY._serialized_end = 2402 - _BUILDIDREACHABILITY._serialized_start = 2404 - _BUILDIDREACHABILITY._serialized_end = 2526 - _RAMPBYPERCENTAGE._serialized_start = 2528 - _RAMPBYPERCENTAGE._serialized_end = 2571 - _BUILDIDASSIGNMENTRULE._serialized_start = 2574 - _BUILDIDASSIGNMENTRULE._serialized_end = 2702 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2704 - _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2785 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2788 - _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2935 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2938 - _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 3101 - _POLLERGROUPINFO._serialized_start = 3103 - _POLLERGROUPINFO._serialized_end = 3148 - _POLLERGROUPSINFO._serialized_start = 3150 - _POLLERGROUPSINFO._serialized_end = 3252 - _POLLERSCALINGDECISION._serialized_start = 3254 - _POLLERSCALINGDECISION._serialized_end = 3316 - _RATELIMIT._serialized_start = 3318 - _RATELIMIT._serialized_end = 3358 - _CONFIGMETADATA._serialized_start = 3360 - _CONFIGMETADATA._serialized_end = 3466 - _RATELIMITCONFIG._serialized_start = 3469 - _RATELIMITCONFIG._serialized_end = 3605 - _TASKQUEUECONFIG._serialized_start = 3608 - _TASKQUEUECONFIG._serialized_end = 3953 - _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = 3891 - _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = 3953 + _POLLERPOOLINFO._serialized_start = 468 + _POLLERPOOLINFO._serialized_end = 508 + _TASKQUEUEVERSIONINGINFO._serialized_start = 511 + _TASKQUEUEVERSIONINGINFO._serialized_end = 857 + _TASKQUEUEVERSIONSELECTION._serialized_start = 859 + _TASKQUEUEVERSIONSELECTION._serialized_end = 946 + _TASKQUEUEVERSIONINFO._serialized_start = 949 + _TASKQUEUEVERSIONINFO._serialized_end = 1226 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_start = 1132 + _TASKQUEUEVERSIONINFO_TYPESINFOENTRY._serialized_end = 1226 + _TASKQUEUETYPEINFO._serialized_start = 1229 + _TASKQUEUETYPEINFO._serialized_end = 1362 + _TASKQUEUESTATS._serialized_start = 1365 + _TASKQUEUESTATS._serialized_end = 1559 + _TASKQUEUESTATUS._serialized_start = 1562 + _TASKQUEUESTATUS._serialized_end = 1734 + _TASKIDBLOCK._serialized_start = 1736 + _TASKIDBLOCK._serialized_end = 1783 + _TASKQUEUEPARTITIONMETADATA._serialized_start = 1785 + _TASKQUEUEPARTITIONMETADATA._serialized_end = 1851 + _POLLERINFO._serialized_start = 1854 + _POLLERINFO._serialized_end = 2136 + _STICKYEXECUTIONATTRIBUTES._serialized_start = 2139 + _STICKYEXECUTIONATTRIBUTES._serialized_end = 2293 + _COMPATIBLEVERSIONSET._serialized_start = 2295 + _COMPATIBLEVERSIONSET._serialized_end = 2336 + _TASKQUEUEREACHABILITY._serialized_start = 2338 + _TASKQUEUEREACHABILITY._serialized_end = 2444 + _BUILDIDREACHABILITY._serialized_start = 2446 + _BUILDIDREACHABILITY._serialized_end = 2568 + _RAMPBYPERCENTAGE._serialized_start = 2570 + _RAMPBYPERCENTAGE._serialized_end = 2613 + _BUILDIDASSIGNMENTRULE._serialized_start = 2616 + _BUILDIDASSIGNMENTRULE._serialized_end = 2744 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2746 + _COMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 2827 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_start = 2830 + _TIMESTAMPEDBUILDIDASSIGNMENTRULE._serialized_end = 2977 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 2980 + _TIMESTAMPEDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 3143 + _POLLERGROUPINFO._serialized_start = 3145 + _POLLERGROUPINFO._serialized_end = 3190 + _POLLERGROUPSINFO._serialized_start = 3192 + _POLLERGROUPSINFO._serialized_end = 3294 + _POLLERSCALINGDECISION._serialized_start = 3296 + _POLLERSCALINGDECISION._serialized_end = 3358 + _RATELIMIT._serialized_start = 3360 + _RATELIMIT._serialized_end = 3400 + _CONFIGMETADATA._serialized_start = 3402 + _CONFIGMETADATA._serialized_end = 3508 + _RATELIMITCONFIG._serialized_start = 3511 + _RATELIMITCONFIG._serialized_end = 3647 + _TASKQUEUECONFIG._serialized_start = 3650 + _TASKQUEUECONFIG._serialized_end = 3995 + _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = 3933 + _TASKQUEUECONFIG_FAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = 3995 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/taskqueue/v1/message_pb2.pyi b/temporalio/api/taskqueue/v1/message_pb2.pyi index 6c82efd62c..4ca005a6e0 100644 --- a/temporalio/api/taskqueue/v1/message_pb2.pyi +++ b/temporalio/api/taskqueue/v1/message_pb2.pyi @@ -79,6 +79,30 @@ class TaskQueueMetadata(google.protobuf.message.Message): global___TaskQueueMetadata = TaskQueueMetadata +@typing.final +class PollerPoolInfo(google.protobuf.message.Message): + """Worker-reported state about the poller pool issuing a poll, used by the server to spread + poller scaling suggestions across a fleet. + """ + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TARGET_POLLERS_FIELD_NUMBER: builtins.int + target_pollers: builtins.int + """Number of concurrent poll requests this worker is currently targeting for this task + queue and task type. 0 if unknown, such as a poller pool of fixed size. + """ + def __init__( + self, + *, + target_pollers: builtins.int = ..., + ) -> None: ... + def ClearField( + self, field_name: typing.Literal["target_pollers", b"target_pollers"] + ) -> None: ... + +global___PollerPoolInfo = PollerPoolInfo + @typing.final class TaskQueueVersioningInfo(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor diff --git a/temporalio/api/worker/v1/message_pb2.py b/temporalio/api/worker/v1/message_pb2.py index 89bf195c27..488f29f3ca 100644 --- a/temporalio/api/worker/v1/message_pb2.py +++ b/temporalio/api/worker/v1/message_pb2.py @@ -24,7 +24,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a"temporal/api/enums/v1/common.proto"\x82\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02"\xc9\n\n\x0fWorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x39\n\thost_info\x18\x03 \x01(\x0b\x32&.temporal.api.worker.v1.WorkerHostInfo\x12\x12\n\ntask_queue\x18\x04 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x06 \x01(\t\x12\x13\n\x0bsdk_version\x18\x07 \x01(\t\x12\x33\n\x06status\x18\x08 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0eheartbeat_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1c\x65lapsed_since_last_heartbeat\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x18workflow_task_slots_info\x18\x0c \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12I\n\x18\x61\x63tivity_task_slots_info\x18\r \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x15nexus_task_slots_info\x18\x0e \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12J\n\x19local_activity_slots_info\x18\x0f \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x14workflow_poller_info\x18\x10 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12M\n\x1bworkflow_sticky_poller_info\x18\x11 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x46\n\x14\x61\x63tivity_poller_info\x18\x12 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x43\n\x11nexus_poller_info\x18\x13 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x1e\n\x16total_sticky_cache_hit\x18\x14 \x01(\x05\x12\x1f\n\x17total_sticky_cache_miss\x18\x15 \x01(\x05\x12!\n\x19\x63urrent_sticky_cache_size\x18\x16 \x01(\x05\x12\x33\n\x07plugins\x18\x17 \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\x18 \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\x12<\n\x0b\x65nvironment\x18\x19 \x01(\x0b\x32\'.temporal.api.worker.v1.EnvironmentInfo"O\n\nWorkerInfo\x12\x41\n\x10worker_heartbeat\x18\x01 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xec\x03\n\x0eWorkerListInfo\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x05 \x01(\t\x12\x13\n\x0bsdk_version\x18\x06 \x01(\t\x12\x33\n\x06status\x18\x07 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\thost_name\x18\t \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\n \x01(\t\x12\x12\n\nprocess_id\x18\x0b \x01(\t\x12\x33\n\x07plugins\x18\x0c \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\r \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo"+\n\nPluginInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"!\n\x11StorageDriverInfo\x12\x0c\n\x04type\x18\x01 \x01(\t"\xdc\x11\n\x0f\x45nvironmentInfo\x12\x41\n\x08runtimes\x18\x01 \x03(\x0b\x32/.temporal.api.worker.v1.EnvironmentInfo.Runtime\x12X\n\x14hosting_environments\x18\x02 \x03(\x0b\x32:.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment\x12\x42\n\x08platform\x18\x03 \x01(\x0b\x32\x30.temporal.api.worker.v1.EnvironmentInfo.Platform\x1a\xc9\x03\n\x07Runtime\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.Runtime.RuntimeType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xe1\x02\n\x0bRuntimeType\x12\x1c\n\x18RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10RUNTIME_TYPE_JVM\x10\x01\x12\x18\n\x14RUNTIME_TYPE_CPYTHON\x10\x02\x12\x15\n\x11RUNTIME_TYPE_NODE\x10\x03\x12\x14\n\x10RUNTIME_TYPE_BUN\x10\x04\x12\x16\n\x12RUNTIME_TYPE_CRUBY\x10\x05\x12\x13\n\x0fRUNTIME_TYPE_GO\x10\x06\x12!\n\x1dRUNTIME_TYPE_DOTNET_FRAMEWORK\x10\x07\x12\x1c\n\x18RUNTIME_TYPE_DOTNET_CORE\x10\x08\x12\x17\n\x13RUNTIME_TYPE_NATIVE\x10\t\x12\x1b\n\x17RUNTIME_TYPE_ROADRUNNER\x10\n\x12\x1a\n\x16RUNTIME_TYPE_GRAAL_AOT\x10\x0b\x12\x17\n\x13RUNTIME_TYPE_KOTLIN\x10\x0c\x1a\xd1\x04\n\x12HostingEnvironment\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xc8\x03\n\x16HostingEnvironmentType\x12(\n$HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fHOSTING_ENVIRONMENT_TYPE_DOCKER\x10\x01\x12 \n\x1cHOSTING_ENVIRONMENT_TYPE_K8S\x10\x02\x12\'\n#HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA\x10\x03\x12$\n HOSTING_ENVIRONMENT_TYPE_AWS_ECS\x10\x04\x12-\n)HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN\x10\x06\x12.\n*HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE\x10\x07\x12.\n*HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE\x10\x08\x12,\n(HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS\x10\t\x12\x31\n-HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS\x10\n\x1a\xf1\x01\n\x08Platform\x12\x46\n\x05linux\x18\x01 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatformH\x00\x12\x46\n\x05macos\x18\x02 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.MacOSPlatformH\x00\x12J\n\x07windows\x18\x03 \x01(\x0b\x32\x37.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatformH\x00\x42\t\n\x07variant\x1a\xf3\x01\n\rLinuxPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x04libc\x18\x03 \x01(\x0e\x32:.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatform.Libc";\n\x04Libc\x12\x14\n\x10LIBC_UNSPECIFIED\x10\x00\x12\x0e\n\nLIBC_GLIBC\x10\x01\x12\r\n\tLIBC_MUSL\x10\x02\x1al\n\rMacOSPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x1a\x91\x02\n\x0fWindowsPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x03\x63rt\x18\x03 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.Crt"W\n\x03\x43rt\x12\x13\n\x0f\x43RT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RT_UCRT\x10\x01\x12\x0e\n\nCRT_MSVCRT\x10\x02\x12\r\n\tCRT_MINGW\x10\x03\x12\x0e\n\nCRT_CYGWIN\x10\x04"\\\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RCHITECTURE_AMD64\x10\x01\x12\x16\n\x12\x41RCHITECTURE_ARM64\x10\x02"a\n\rWorkerCommand\x12H\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32-.temporal.api.worker.v1.CancelActivityCommandH\x00\x42\x06\n\x04type"+\n\x15\x43\x61ncelActivityCommand\x12\x12\n\ntask_token\x18\x01 \x01(\x0c"f\n\x13WorkerCommandResult\x12G\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32,.temporal.api.worker.v1.CancelActivityResultH\x00\x42\x06\n\x04type"\x16\n\x14\x43\x61ncelActivityResultB\x89\x01\n\x19io.temporal.api.worker.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3' + b'\n$temporal/api/worker/v1/message.proto\x12\x16temporal.api.worker.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(temporal/api/deployment/v1/message.proto\x1a"temporal/api/enums/v1/common.proto"\x9a\x01\n\x10WorkerPollerInfo\x12\x17\n\x0f\x63urrent_pollers\x18\x01 \x01(\x05\x12=\n\x19last_successful_poll_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_autoscaling\x18\x03 \x01(\x08\x12\x16\n\x0etarget_pollers\x18\x04 \x01(\x05"\xf1\x01\n\x0fWorkerSlotsInfo\x12\x1f\n\x17\x63urrent_available_slots\x18\x01 \x01(\x05\x12\x1a\n\x12\x63urrent_used_slots\x18\x02 \x01(\x05\x12\x1a\n\x12slot_supplier_kind\x18\x03 \x01(\t\x12\x1d\n\x15total_processed_tasks\x18\x04 \x01(\x05\x12\x1a\n\x12total_failed_tasks\x18\x05 \x01(\x05\x12%\n\x1dlast_interval_processed_tasks\x18\x06 \x01(\x05\x12#\n\x1blast_interval_failure_tasks\x18\x07 \x01(\x05"\x94\x01\n\x0eWorkerHostInfo\x12\x11\n\thost_name\x18\x01 \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\x05 \x01(\t\x12\x12\n\nprocess_id\x18\x02 \x01(\t\x12\x1e\n\x16\x63urrent_host_cpu_usage\x18\x03 \x01(\x02\x12\x1e\n\x16\x63urrent_host_mem_usage\x18\x04 \x01(\x02"\xc9\n\n\x0fWorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x39\n\thost_info\x18\x03 \x01(\x0b\x32&.temporal.api.worker.v1.WorkerHostInfo\x12\x12\n\ntask_queue\x18\x04 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x06 \x01(\t\x12\x13\n\x0bsdk_version\x18\x07 \x01(\t\x12\x33\n\x06status\x18\x08 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0eheartbeat_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12?\n\x1c\x65lapsed_since_last_heartbeat\x18\x0b \x01(\x0b\x32\x19.google.protobuf.Duration\x12I\n\x18workflow_task_slots_info\x18\x0c \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12I\n\x18\x61\x63tivity_task_slots_info\x18\r \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x15nexus_task_slots_info\x18\x0e \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12J\n\x19local_activity_slots_info\x18\x0f \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerSlotsInfo\x12\x46\n\x14workflow_poller_info\x18\x10 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12M\n\x1bworkflow_sticky_poller_info\x18\x11 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x46\n\x14\x61\x63tivity_poller_info\x18\x12 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x43\n\x11nexus_poller_info\x18\x13 \x01(\x0b\x32(.temporal.api.worker.v1.WorkerPollerInfo\x12\x1e\n\x16total_sticky_cache_hit\x18\x14 \x01(\x05\x12\x1f\n\x17total_sticky_cache_miss\x18\x15 \x01(\x05\x12!\n\x19\x63urrent_sticky_cache_size\x18\x16 \x01(\x05\x12\x33\n\x07plugins\x18\x17 \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\x18 \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo\x12<\n\x0b\x65nvironment\x18\x19 \x01(\x0b\x32\'.temporal.api.worker.v1.EnvironmentInfo"O\n\nWorkerInfo\x12\x41\n\x10worker_heartbeat\x18\x01 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xec\x03\n\x0eWorkerListInfo\x12\x1b\n\x13worker_instance_key\x18\x01 \x01(\t\x12\x17\n\x0fworker_identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x10\n\x08sdk_name\x18\x05 \x01(\t\x12\x13\n\x0bsdk_version\x18\x06 \x01(\t\x12\x33\n\x06status\x18\x07 \x01(\x0e\x32#.temporal.api.enums.v1.WorkerStatus\x12.\n\nstart_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\thost_name\x18\t \x01(\t\x12\x1b\n\x13worker_grouping_key\x18\n \x01(\t\x12\x12\n\nprocess_id\x18\x0b \x01(\t\x12\x33\n\x07plugins\x18\x0c \x03(\x0b\x32".temporal.api.worker.v1.PluginInfo\x12:\n\x07\x64rivers\x18\r \x03(\x0b\x32).temporal.api.worker.v1.StorageDriverInfo"+\n\nPluginInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t"!\n\x11StorageDriverInfo\x12\x0c\n\x04type\x18\x01 \x01(\t"\xdc\x11\n\x0f\x45nvironmentInfo\x12\x41\n\x08runtimes\x18\x01 \x03(\x0b\x32/.temporal.api.worker.v1.EnvironmentInfo.Runtime\x12X\n\x14hosting_environments\x18\x02 \x03(\x0b\x32:.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment\x12\x42\n\x08platform\x18\x03 \x01(\x0b\x32\x30.temporal.api.worker.v1.EnvironmentInfo.Platform\x1a\xc9\x03\n\x07Runtime\x12I\n\x04type\x18\x01 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.Runtime.RuntimeType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xe1\x02\n\x0bRuntimeType\x12\x1c\n\x18RUNTIME_TYPE_UNSPECIFIED\x10\x00\x12\x14\n\x10RUNTIME_TYPE_JVM\x10\x01\x12\x18\n\x14RUNTIME_TYPE_CPYTHON\x10\x02\x12\x15\n\x11RUNTIME_TYPE_NODE\x10\x03\x12\x14\n\x10RUNTIME_TYPE_BUN\x10\x04\x12\x16\n\x12RUNTIME_TYPE_CRUBY\x10\x05\x12\x13\n\x0fRUNTIME_TYPE_GO\x10\x06\x12!\n\x1dRUNTIME_TYPE_DOTNET_FRAMEWORK\x10\x07\x12\x1c\n\x18RUNTIME_TYPE_DOTNET_CORE\x10\x08\x12\x17\n\x13RUNTIME_TYPE_NATIVE\x10\t\x12\x1b\n\x17RUNTIME_TYPE_ROADRUNNER\x10\n\x12\x1a\n\x16RUNTIME_TYPE_GRAAL_AOT\x10\x0b\x12\x17\n\x13RUNTIME_TYPE_KOTLIN\x10\x0c\x1a\xd1\x04\n\x12HostingEnvironment\x12_\n\x04type\x18\x01 \x01(\x0e\x32Q.temporal.api.worker.v1.EnvironmentInfo.HostingEnvironment.HostingEnvironmentType\x12\x0f\n\x07version\x18\x02 \x01(\t"\xc8\x03\n\x16HostingEnvironmentType\x12(\n$HOSTING_ENVIRONMENT_TYPE_UNSPECIFIED\x10\x00\x12#\n\x1fHOSTING_ENVIRONMENT_TYPE_DOCKER\x10\x01\x12 \n\x1cHOSTING_ENVIRONMENT_TYPE_K8S\x10\x02\x12\'\n#HOSTING_ENVIRONMENT_TYPE_AWS_LAMBDA\x10\x03\x12$\n HOSTING_ENVIRONMENT_TYPE_AWS_ECS\x10\x04\x12-\n)HOSTING_ENVIRONMENT_TYPE_GOOGLE_CLOUD_RUN\x10\x06\x12.\n*HOSTING_ENVIRONMENT_TYPE_GOOGLE_APP_ENGINE\x10\x07\x12.\n*HOSTING_ENVIRONMENT_TYPE_AZURE_APP_SERVICE\x10\x08\x12,\n(HOSTING_ENVIRONMENT_TYPE_AZURE_FUNCTIONS\x10\t\x12\x31\n-HOSTING_ENVIRONMENT_TYPE_AZURE_CONTAINER_APPS\x10\n\x1a\xf1\x01\n\x08Platform\x12\x46\n\x05linux\x18\x01 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatformH\x00\x12\x46\n\x05macos\x18\x02 \x01(\x0b\x32\x35.temporal.api.worker.v1.EnvironmentInfo.MacOSPlatformH\x00\x12J\n\x07windows\x18\x03 \x01(\x0b\x32\x37.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatformH\x00\x42\t\n\x07variant\x1a\xf3\x01\n\rLinuxPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x04libc\x18\x03 \x01(\x0e\x32:.temporal.api.worker.v1.EnvironmentInfo.LinuxPlatform.Libc";\n\x04Libc\x12\x14\n\x10LIBC_UNSPECIFIED\x10\x00\x12\x0e\n\nLIBC_GLIBC\x10\x01\x12\r\n\tLIBC_MUSL\x10\x02\x1al\n\rMacOSPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x1a\x91\x02\n\x0fWindowsPlatform\x12\x0f\n\x07version\x18\x01 \x01(\t\x12J\n\x0c\x61rchitecture\x18\x02 \x01(\x0e\x32\x34.temporal.api.worker.v1.EnvironmentInfo.Architecture\x12H\n\x03\x63rt\x18\x03 \x01(\x0e\x32;.temporal.api.worker.v1.EnvironmentInfo.WindowsPlatform.Crt"W\n\x03\x43rt\x12\x13\n\x0f\x43RT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43RT_UCRT\x10\x01\x12\x0e\n\nCRT_MSVCRT\x10\x02\x12\r\n\tCRT_MINGW\x10\x03\x12\x0e\n\nCRT_CYGWIN\x10\x04"\\\n\x0c\x41rchitecture\x12\x1c\n\x18\x41RCHITECTURE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x41RCHITECTURE_AMD64\x10\x01\x12\x16\n\x12\x41RCHITECTURE_ARM64\x10\x02"a\n\rWorkerCommand\x12H\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32-.temporal.api.worker.v1.CancelActivityCommandH\x00\x42\x06\n\x04type"+\n\x15\x43\x61ncelActivityCommand\x12\x12\n\ntask_token\x18\x01 \x01(\x0c"f\n\x13WorkerCommandResult\x12G\n\x0f\x63\x61ncel_activity\x18\x01 \x01(\x0b\x32,.temporal.api.worker.v1.CancelActivityResultH\x00\x42\x06\n\x04type"\x16\n\x14\x43\x61ncelActivityResultB\x89\x01\n\x19io.temporal.api.worker.v1B\x0cMessageProtoP\x01Z#go.temporal.io/api/worker/v1;worker\xaa\x02\x18Temporalio.Api.Worker.V1\xea\x02\x1bTemporalio::Api::Worker::V1b\x06proto3' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) @@ -33,51 +33,51 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b"\n\031io.temporal.api.worker.v1B\014MessageProtoP\001Z#go.temporal.io/api/worker/v1;worker\252\002\030Temporalio.Api.Worker.V1\352\002\033Temporalio::Api::Worker::V1" _WORKERPOLLERINFO._serialized_start = 208 - _WORKERPOLLERINFO._serialized_end = 338 - _WORKERSLOTSINFO._serialized_start = 341 - _WORKERSLOTSINFO._serialized_end = 582 - _WORKERHOSTINFO._serialized_start = 585 - _WORKERHOSTINFO._serialized_end = 733 - _WORKERHEARTBEAT._serialized_start = 736 - _WORKERHEARTBEAT._serialized_end = 2089 - _WORKERINFO._serialized_start = 2091 - _WORKERINFO._serialized_end = 2170 - _WORKERLISTINFO._serialized_start = 2173 - _WORKERLISTINFO._serialized_end = 2665 - _PLUGININFO._serialized_start = 2667 - _PLUGININFO._serialized_end = 2710 - _STORAGEDRIVERINFO._serialized_start = 2712 - _STORAGEDRIVERINFO._serialized_end = 2745 - _ENVIRONMENTINFO._serialized_start = 2748 - _ENVIRONMENTINFO._serialized_end = 5016 - _ENVIRONMENTINFO_RUNTIME._serialized_start = 2993 - _ENVIRONMENTINFO_RUNTIME._serialized_end = 3450 - _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_start = 3097 - _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_end = 3450 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_start = 3453 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_end = 4046 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_start = 3590 - _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_end = 4046 - _ENVIRONMENTINFO_PLATFORM._serialized_start = 4049 - _ENVIRONMENTINFO_PLATFORM._serialized_end = 4290 - _ENVIRONMENTINFO_LINUXPLATFORM._serialized_start = 4293 - _ENVIRONMENTINFO_LINUXPLATFORM._serialized_end = 4536 - _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_start = 4477 - _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_end = 4536 - _ENVIRONMENTINFO_MACOSPLATFORM._serialized_start = 4538 - _ENVIRONMENTINFO_MACOSPLATFORM._serialized_end = 4646 - _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_start = 4649 - _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_end = 4922 - _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_start = 4835 - _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_end = 4922 - _ENVIRONMENTINFO_ARCHITECTURE._serialized_start = 4924 - _ENVIRONMENTINFO_ARCHITECTURE._serialized_end = 5016 - _WORKERCOMMAND._serialized_start = 5018 - _WORKERCOMMAND._serialized_end = 5115 - _CANCELACTIVITYCOMMAND._serialized_start = 5117 - _CANCELACTIVITYCOMMAND._serialized_end = 5160 - _WORKERCOMMANDRESULT._serialized_start = 5162 - _WORKERCOMMANDRESULT._serialized_end = 5264 - _CANCELACTIVITYRESULT._serialized_start = 5266 - _CANCELACTIVITYRESULT._serialized_end = 5288 + _WORKERPOLLERINFO._serialized_end = 362 + _WORKERSLOTSINFO._serialized_start = 365 + _WORKERSLOTSINFO._serialized_end = 606 + _WORKERHOSTINFO._serialized_start = 609 + _WORKERHOSTINFO._serialized_end = 757 + _WORKERHEARTBEAT._serialized_start = 760 + _WORKERHEARTBEAT._serialized_end = 2113 + _WORKERINFO._serialized_start = 2115 + _WORKERINFO._serialized_end = 2194 + _WORKERLISTINFO._serialized_start = 2197 + _WORKERLISTINFO._serialized_end = 2689 + _PLUGININFO._serialized_start = 2691 + _PLUGININFO._serialized_end = 2734 + _STORAGEDRIVERINFO._serialized_start = 2736 + _STORAGEDRIVERINFO._serialized_end = 2769 + _ENVIRONMENTINFO._serialized_start = 2772 + _ENVIRONMENTINFO._serialized_end = 5040 + _ENVIRONMENTINFO_RUNTIME._serialized_start = 3017 + _ENVIRONMENTINFO_RUNTIME._serialized_end = 3474 + _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_start = 3121 + _ENVIRONMENTINFO_RUNTIME_RUNTIMETYPE._serialized_end = 3474 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_start = 3477 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT._serialized_end = 4070 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_start = 3614 + _ENVIRONMENTINFO_HOSTINGENVIRONMENT_HOSTINGENVIRONMENTTYPE._serialized_end = 4070 + _ENVIRONMENTINFO_PLATFORM._serialized_start = 4073 + _ENVIRONMENTINFO_PLATFORM._serialized_end = 4314 + _ENVIRONMENTINFO_LINUXPLATFORM._serialized_start = 4317 + _ENVIRONMENTINFO_LINUXPLATFORM._serialized_end = 4560 + _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_start = 4501 + _ENVIRONMENTINFO_LINUXPLATFORM_LIBC._serialized_end = 4560 + _ENVIRONMENTINFO_MACOSPLATFORM._serialized_start = 4562 + _ENVIRONMENTINFO_MACOSPLATFORM._serialized_end = 4670 + _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_start = 4673 + _ENVIRONMENTINFO_WINDOWSPLATFORM._serialized_end = 4946 + _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_start = 4859 + _ENVIRONMENTINFO_WINDOWSPLATFORM_CRT._serialized_end = 4946 + _ENVIRONMENTINFO_ARCHITECTURE._serialized_start = 4948 + _ENVIRONMENTINFO_ARCHITECTURE._serialized_end = 5040 + _WORKERCOMMAND._serialized_start = 5042 + _WORKERCOMMAND._serialized_end = 5139 + _CANCELACTIVITYCOMMAND._serialized_start = 5141 + _CANCELACTIVITYCOMMAND._serialized_end = 5184 + _WORKERCOMMANDRESULT._serialized_start = 5186 + _WORKERCOMMANDRESULT._serialized_end = 5288 + _CANCELACTIVITYRESULT._serialized_start = 5290 + _CANCELACTIVITYRESULT._serialized_end = 5312 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/worker/v1/message_pb2.pyi b/temporalio/api/worker/v1/message_pb2.pyi index 2a8b9b46a6..68fa449887 100644 --- a/temporalio/api/worker/v1/message_pb2.pyi +++ b/temporalio/api/worker/v1/message_pb2.pyi @@ -32,10 +32,15 @@ class WorkerPollerInfo(google.protobuf.message.Message): CURRENT_POLLERS_FIELD_NUMBER: builtins.int LAST_SUCCESSFUL_POLL_TIME_FIELD_NUMBER: builtins.int IS_AUTOSCALING_FIELD_NUMBER: builtins.int + TARGET_POLLERS_FIELD_NUMBER: builtins.int current_pollers: builtins.int """Number of polling RPCs that are currently in flight.""" is_autoscaling: builtins.bool """Set true if the number of concurrent pollers is auto-scaled""" + target_pollers: builtins.int + """Number of concurrent poll requests this poller pool is currently targeting, which may + differ from current_pollers. 0 if unknown, such as a poller pool of fixed size. + """ @property def last_successful_poll_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... def __init__( @@ -44,6 +49,7 @@ class WorkerPollerInfo(google.protobuf.message.Message): current_pollers: builtins.int = ..., last_successful_poll_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., is_autoscaling: builtins.bool = ..., + target_pollers: builtins.int = ..., ) -> None: ... def HasField( self, @@ -60,6 +66,8 @@ class WorkerPollerInfo(google.protobuf.message.Message): b"is_autoscaling", "last_successful_poll_time", b"last_successful_poll_time", + "target_pollers", + b"target_pollers", ], ) -> None: ... diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.py b/temporalio/api/workflowservice/v1/request_response_pb2.py index f81450e036..0a42ea3af4 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.py +++ b/temporalio/api/workflowservice/v1/request_response_pb2.py @@ -133,7 +133,7 @@ ) DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile( - b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a"temporal/api/enums/v1/update.proto\x1a)temporal/api/enums/v1/time_skipping.proto\x1a$temporal/api/enums/v1/activity.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a$temporal/api/compute/v1/config.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a#temporal/api/rules/v1/message.proto\x1a\'temporal/api/sdk/v1/worker_config.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a,temporal/api/nexusoperation/v1/message.proto\x1a$temporal/api/worker/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"S\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x18\n\x10weak_consistency\x18\x03 \x01(\x08"\x81\x04\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus\x12J\n\x12poller_group_infos\x18\x07 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x08 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\x97\x0e\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12H\n\x13on_conflict_options\x18\x1a \x01(\x0b\x32+.temporal.api.workflow.v1.OnConflictOptions\x12\x32\n\x08priority\x18\x1b \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\\\n\x1f\x65\x61ger_worker_deployment_options\x18\x1c \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12H\n\x14time_skipping_config\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12\x65\n&propagated_nexus_serialization_context\x18\x1e \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12]\n\x1ftime_skipping_state_propagation\x18\x1f \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation"\xaa\x02\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xa1\x02\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xb8\x03\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptionsJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\xbf\x08\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12Q\n\x17poller_scaling_decision\x18\x10 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x11 \x01(\t\x12J\n\x12poller_group_infos\x18\x12 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x13 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xba\n\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x1b\n\x0f\x62inary_checksum\x18\x07 \x01(\tB\x02\x18\x01\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12\x13\n\x0bresource_id\x18\x12 \x01(\t\x12L\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x12>\n\ndeployment\x18\x0f \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x10 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12O\n\x12\x64\x65ployment_options\x18\x11 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x1b\n\x13worker_instance_key\x18\x13 \x01(\t\x12!\n\x19worker_control_task_queue\x18\x14 \x01(\t\x12\x13\n\x0bpage_number\x18\x15 \x01(\x05\x12\x19\n\x11intermediate_page\x18\x16 \x01(\x08\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\x8d\x04\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x05 \x01(\tB\x02\x18\x01\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x46\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\t \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\n \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"#\n!RespondWorkflowTaskFailedResponse"\xe6\x03\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptionsJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\x84\n\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12Q\n\x17poller_scaling_decision\x18\x12 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x32\n\x08priority\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x17\n\x0f\x61\x63tivity_run_id\x18\x14 \x01(\t\x12J\n\x12poller_group_infos\x18\x15 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x16 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xa5\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x05 \x01(\t"p\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xcf\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"t\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xfe\x02\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"&\n$RespondActivityTaskCompletedResponse"\xcf\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\xfd\x03\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x08 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12=\n\x05\x63\x61use\x18\n \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xce\x02\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12=\n\x05\x63\x61use\x18\t \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfe\x02\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"%\n#RespondActivityTaskCanceledResponse"\xa0\x02\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x13\n\x0bresource_id\x18\x08 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xde\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x13\n\x07\x63ontrol\x18\x07 \x01(\tB\x02\x18\x01\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.LinkJ\x04\x08\t\x10\n"M\n\x1fSignalWorkflowExecutionResponse\x12*\n\x04link\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xbb\n\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x0e \x01(\tB\x02\x18\x01\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x1b \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfigJ\x04\x08\x15\x10\x16"\x9e\x01\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x04 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12\x31\n\x0bsignal_link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xc1\x03\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12G\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType\x12K\n\x15post_reset_operations\x18\x08 \x03(\x0b\x32,.temporal.api.workflow.v1.PostResetOperation\x12\x10\n\x08identity\x18\t \x01(\t"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xe9\x02\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12=\n\x05\x63\x61use\x18\x08 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x17\n\x0fpoller_group_id\x18\t \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\x9b\x02\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x05 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x06 \x01(\t\x12\x12\n\ntask_queue\x18\x07 \x01(\t\x12>\n\x10task_queue_types\x18\x08 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\xb9\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x99\x05\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo\x12W\n\x16workflow_extended_info\x18\x08 \x01(\x0b\x32\x37.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo"\x90\x04\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x15\n\rreport_config\x18\x0b \x01(\x08\x12%\n\x19include_task_queue_status\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x42\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueModeB\x02\x18\x01\x12J\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelectionB\x02\x18\x01\x12\x42\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueTypeB\x02\x18\x01\x12\x1a\n\x0ereport_pollers\x18\t \x01(\x08\x42\x02\x18\x01\x12$\n\x18report_task_reachability\x18\n \x01(\x08\x42\x02\x18\x01"\xec\x07\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x05 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12q\n\x15stats_by_priority_key\x18\x08 \x03(\x0b\x32R.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry\x12K\n\x0fversioning_info\x18\x04 \x01(\x0b\x32\x32.temporal.api.taskqueue.v1.TaskQueueVersioningInfo\x12:\n\x06\x63onfig\x18\x06 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig\x12k\n\x14\x65\x66\x66\x65\x63tive_rate_limit\x18\x07 \x01(\x0b\x32M.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit\x12I\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatusB\x02\x18\x01\x12g\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntryB\x02\x18\x01\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01\x1at\n\x12\x45\x66\x66\x65\x63tiveRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\x12\x41\n\x11rate_limit_source\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.RateLimitSource\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\xd1\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x12 \n\x18initial_failover_version\x18\t \x01(\x03\x12"\n\x1a\x66\x61ilover_version_increment\x18\n \x01(\x03\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xc1\x04\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xb4\x03\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08\x12!\n\x19server_scaled_deployments\x18\x0c \x01(\x08\x12(\n server_scaled_provider_cloud_run\x18\r \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xa4\x02\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12*\n\x04memo\x18\x08 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x15\x43ountSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xdb\x01\n\x16\x43ountSchedulesResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12X\n\x06groups\x18\x02 \x03(\x0b\x32H.temporal.api.workflowservice.v1.CountSchedulesResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xea\x02\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xd6\n\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecutionB\x02\x18\x01\x12<\n\x11target_executions\x18\x16 \x03(\x0b\x32!.temporal.api.common.v1.Execution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x12p\n!update_workflow_options_operation\x18\x0f \x01(\x0b\x32\x43.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00\x12^\n\x1cunpause_activities_operation\x18\x10 \x01(\x0b\x32\x36.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00\x12Z\n\x1areset_activities_operation\x18\x11 \x01(\x0b\x32\x34.temporal.api.batch.v1.BatchOperationResetActivitiesH\x00\x12g\n!update_activity_options_operation\x18\x12 \x01(\x0b\x32:.temporal.api.batch.v1.BatchOperationUpdateActivityOptionsH\x00\x12\\\n\x1b\x63\x61ncel_activities_operation\x18\x13 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationCancelActivitiesH\x00\x12\x62\n\x1eterminate_activities_operation\x18\x14 \x01(\x0b\x32\x38.temporal.api.batch.v1.BatchOperationTerminateActivitiesH\x00\x12\\\n\x1b\x64\x65lete_activities_operation\x18\x15 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationDeleteActivitiesH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\xd8\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t\x12\r\n\x05query\x18\x0b \x01(\t\x12\x35\n\nexecutions\x18\x0c \x03(\x0b\x32!.temporal.api.common.v1.Execution"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xc2\x02\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x65\n&propagated_nexus_serialization_context\x18\x04 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xa0\x03\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\t \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x41\n\x10worker_heartbeat\x18\x07 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat"\xe2\x02\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request\x12Q\n\x17poller_scaling_decision\x18\x03 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x04 \x01(\t\x12J\n\x12poller_group_infos\x18\x05 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x06 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xa7\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response\x12\x17\n\x0fpoller_group_id\x18\x05 \x01(\t"#\n!RespondNexusTaskCompletedResponse"\xdc\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorB\x02\x18\x01\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x17\n\x0fpoller_group_id\x18\x06 \x01(\t" \n\x1eRespondNexusTaskFailedResponse"\xf4\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x12\x13\n\x0bresource_id\x18\x03 \x01(\t\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\xd0\x02\n\x1cUpdateActivityOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x02id\x18\x06 \x01(\tH\x00\x12\x0e\n\x04type\x18\x07 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\t \x01(\x08H\x00\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x42\n\n\x08\x61\x63tivity"\xbf\x02\n%UpdateActivityExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x06 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t"d\n\x1dUpdateActivityOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"m\n&UpdateActivityExecutionOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\xc7\x01\n\x14PauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x12\n\nrequest_id\x18\x07 \x01(\tB\n\n\x08\x61\x63tivity"\xb7\x01\n\x1dPauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t\x12\x12\n\nrequest_id\x18\x08 \x01(\t"\x17\n\x15PauseActivityResponse" \n\x1ePauseActivityExecutionResponse"\x98\x02\n\x16UnpauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x15\n\x0bunpause_all\x18\x06 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x91\x02\n\x1fUnpauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0bresource_id\x18\n \x01(\t\x12\x12\n\nrequest_id\x18\x0b \x01(\tJ\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08R\x0ereset_attemptsR\x0freset_heartbeat"\x19\n\x17UnpauseActivityResponse""\n UnpauseActivityExecutionResponse"\xb3\x02\n\x14ResetActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\n \x01(\x08H\x00\x12\x17\n\x0freset_heartbeat\x18\x06 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x07 \x01(\x08\x12)\n\x06jitter\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\t \x01(\x08\x42\n\n\x08\x61\x63tivity"\xa2\x02\n\x1dResetActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0bkeep_paused\x18\x06 \x01(\x08\x12)\n\x06jitter\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12\x17\n\x0freset_heartbeat\x18\x0b \x01(\x08"\x17\n\x15ResetActivityResponse" \n\x1eResetActivityExecutionResponse"\x9c\x02\n%UpdateWorkflowExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12V\n\x1aworkflow_execution_options\x18\x03 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08identity\x18\x05 \x01(\t"\xb1\x01\n&UpdateWorkflowExecutionOptionsResponse\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"j\n\x19\x44\x65scribeDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"a\n\x1a\x44\x65scribeDeploymentResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xc2\x01\n&DescribeWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1f\n\x17report_task_queue_stats\x18\x04 \x01(\x08"\x8c\x05\n\'DescribeWorkerDeploymentVersionResponse\x12_\n\x1eworker_deployment_version_info\x18\x01 \x01(\x0b\x32\x37.temporal.api.deployment.v1.WorkerDeploymentVersionInfo\x12v\n\x13version_task_queues\x18\x02 \x03(\x0b\x32Y.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue\x1a\x87\x03\n\x10VersionTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x38\n\x05stats\x18\x03 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12\x90\x01\n\x15stats_by_priority_key\x18\x04 \x03(\x0b\x32q.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01"M\n\x1f\x44\x65scribeWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\x8c\x01\n DescribeWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12P\n\x16worker_deployment_info\x18\x02 \x01(\x0b\x32\x30.temporal.api.deployment.v1.WorkerDeploymentInfo"l\n\x16ListDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x13\n\x0bseries_name\x18\x04 \x01(\t"w\n\x17ListDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x43\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32..temporal.api.deployment.v1.DeploymentListInfo"\xcd\x01\n\x1bSetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12\x10\n\x08identity\x18\x03 \x01(\t\x12M\n\x0fupdate_metadata\x18\x04 \x01(\x0b\x32\x34.temporal.api.deployment.v1.UpdateDeploymentMetadata"\xb9\x01\n\x1cSetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12L\n\x18previous_deployment_info\x18\x02 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xe5\x01\n(SetWorkerDeploymentCurrentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x06 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\t \x01(\x08"\xbf\x01\n)SetWorkerDeploymentCurrentVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01"\xf9\x01\n(SetWorkerDeploymentRampingVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x08 \x01(\t\x12\x12\n\npercentage\x18\x04 \x01(\x02\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x07 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\n \x01(\x08"\xe0\x01\n)SetWorkerDeploymentRampingVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01\x12\x1f\n\x13previous_percentage\x18\x03 \x01(\x02\x42\x02\x18\x01"q\n\x1d\x43reateWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"8\n\x1e\x43reateWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"]\n\x1cListWorkerDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\x9f\x05\n\x1dListWorkerDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12r\n\x12worker_deployments\x18\x02 \x03(\x0b\x32V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary\x1a\xf0\x03\n\x17WorkerDeploymentSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x03 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12o\n\x16latest_version_summary\x18\x04 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17\x63urrent_version_summary\x18\x05 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17ramping_version_summary\x18\x06 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary"\xf0\x01\n$CreateWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12>\n\x0e\x63ompute_config\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeConfig\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\'\n%CreateWorkerDeploymentVersionResponse"\xc8\x01\n$DeleteWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x15\n\rskip_drainage\x18\x03 \x01(\x08\x12\x10\n\x08identity\x18\x04 \x01(\t"\'\n%DeleteWorkerDeploymentVersionResponse"]\n\x1d\x44\x65leteWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t" \n\x1e\x44\x65leteWorkerDeploymentResponse"\x84\x04\n1UpdateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x99\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32r.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"4\n2UpdateWorkerDeploymentVersionComputeConfigResponse"\xf4\x03\n3ValidateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x9b\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32t.temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"6\n4ValidateWorkerDeploymentVersionComputeConfigResponse"\xa2\x03\n,UpdateWorkerDeploymentVersionMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12x\n\x0eupsert_entries\x18\x03 \x03(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x04 \x03(\t\x12\x10\n\x08identity\x18\x06 \x01(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"n\n-UpdateWorkerDeploymentVersionMetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata"\xbd\x01\n!SetWorkerDeploymentManagerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x1a\n\x10manager_identity\x18\x03 \x01(\tH\x00\x12\x0e\n\x04self\x18\x04 \x01(\x08H\x00\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\tB\x16\n\x14new_manager_identity"c\n"SetWorkerDeploymentManagerResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12%\n\x19previous_manager_identity\x18\x02 \x01(\tB\x02\x18\x01"E\n\x1bGetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bseries_name\x18\x02 \x01(\t"k\n\x1cGetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"q\n GetDeploymentReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\xe3\x01\n!GetDeploymentReachabilityResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12\x43\n\x0creachability\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.DeploymentReachability\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x01\n\x19\x43reateWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\x04spec\x18\x02 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpec\x12\x12\n\nforce_scan\x18\x03 \x01(\x08\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"_\n\x1a\x43reateWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x0e\n\x06job_id\x18\x02 \x01(\t"A\n\x1b\x44\x65scribeWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"Q\n\x1c\x44\x65scribeWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule"?\n\x19\x44\x65leteWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65leteWorkflowRuleResponse"F\n\x18ListWorkflowRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"h\n\x19ListWorkflowRulesResponse\x12\x32\n\x05rules\x18\x01 \x03(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xce\x01\n\x1aTriggerWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x37\n\x04spec\x18\x05 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpecH\x00\x12\x10\n\x08identity\x18\x03 \x01(\tB\x06\n\x04rule".\n\x1bTriggerWorkflowRuleResponse\x12\x0f\n\x07\x61pplied\x18\x01 \x01(\x08"\x9b\x01\n\x1cRecordWorkerHeartbeatRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x03 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x13\n\x0bresource_id\x18\x04 \x01(\t"\x1f\n\x1dRecordWorkerHeartbeatResponse"\x82\x01\n\x12ListWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x05 \x01(\x08"\xa5\x01\n\x13ListWorkersResponse\x12<\n\x0cworkers_info\x18\x01 \x03(\x0b\x32".temporal.api.worker.v1.WorkerInfoB\x02\x18\x01\x12\x37\n\x07workers\x18\x03 \x03(\x0b\x32&.temporal.api.worker.v1.WorkerListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xd5\x05\n\x1cUpdateTaskQueueConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12=\n\x0ftask_queue_type\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12n\n\x17update_queue_rate_limit\x18\x05 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12}\n&update_fairness_key_rate_limit_default\x18\x06 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12\x84\x01\n\x1dset_fairness_weight_overrides\x18\x07 \x03(\x0b\x32].temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry\x12\'\n\x1funset_fairness_weight_overrides\x18\x08 \x03(\t\x1a[\n\x0fRateLimitUpdate\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x41\n\x1fSetFairnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01"[\n\x1dUpdateTaskQueueConfigResponse\x12:\n\x06\x63onfig\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig"\x9e\x01\n\x18\x46\x65tchWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"U\n\x19\x46\x65tchWorkerConfigResponse\x12\x38\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig"\x8a\x02\n\x19UpdateWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\rworker_config\x18\x04 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"d\n\x1aUpdateWorkerConfigResponse\x12:\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfigH\x00\x42\n\n\x08response"G\n\x15\x44\x65scribeWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x02 \x01(\t"Q\n\x16\x44\x65scribeWorkerResponse\x12\x37\n\x0bworker_info\x18\x01 \x01(\x0b\x32".temporal.api.worker.v1.WorkerInfo"W\n\x13\x43ountWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x03 \x01(\x08"%\n\x14\x43ountWorkersResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03"\x8d\x01\n\x1dPauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t" \n\x1ePauseWorkflowExecutionResponse"\x8f\x01\n\x1fUnpauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t""\n UnpauseWorkflowExecutionResponse"\xa1\n\n\x1dStartActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x06 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12/\n\x05input\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x45\n\x0fid_reuse_policy\x18\r \x01(\x0e\x32,.temporal.api.enums.v1.ActivityIdReusePolicy\x12K\n\x12id_conflict_policy\x18\x0e \x01(\x0e\x32/.temporal.api.enums.v1.ActivityIdConflictPolicy\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x11 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12>\n\x14\x63ompletion_callbacks\x18\x13 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x14 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x46\n\x13on_conflict_options\x18\x15 \x01(\x0b\x32).temporal.api.common.v1.OnConflictOptions\x12.\n\x0bstart_delay\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x1f\n\x17request_eager_execution\x18\x18 \x01(\x08"\xca\x01\n\x1eStartActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12[\n\x13\x65\x61ger_activity_task\x18\x04 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\xe4\x01\n DescribeActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12!\n\x19include_heartbeat_details\x18\x07 \x01(\x08\x12\x1c\n\x14include_last_failure\x18\x08 \x01(\x08"\xbc\x02\n!DescribeActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.temporal.api.activity.v1.ActivityExecutionInfo\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x07outcome\x18\x04 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x17\n\x0flong_poll_token\x18\x05 \x01(\x0c\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.activity.v1.CallbackInfo"V\n\x1cPollActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\xdb\x01\n\x1dPollActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x43\n\x07outcome\x18\x02 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x65\n&propagated_nexus_serialization_context\x18\x03 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"m\n\x1dListActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x82\x01\n\x1eListActivityExecutionsResponse\x12G\n\nexecutions\x18\x01 \x03(\x0b\x32\x33.temporal.api.activity.v1.ActivityExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8e\x08\n#StartNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\x0f\n\x07service\x18\x06 \x01(\t\x12\x11\n\toperation\x18\x07 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x05input\x18\x0b \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12K\n\x0fid_reuse_policy\x18\x0c \x01(\x0e\x32\x32.temporal.api.enums.v1.NexusOperationIdReusePolicy\x12Q\n\x12id_conflict_policy\x18\r \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusOperationIdConflictPolicy\x12N\n\x13on_conflict_options\x18\x11 \x01(\x0b\x32\x31.temporal.api.nexusoperation.v1.OnConflictOptions\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12k\n\x0cnexus_header\x18\x0f \x03(\x0b\x32U.temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x10 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12>\n\x14\x63ompletion_callbacks\x18\x12 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x13 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"G\n$StartNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xaa\x01\n&DescribeNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c"\x83\x03\n\'DescribeNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12@\n\x04info\x18\x02 \x01(\x0b\x32\x32.temporal.api.nexus.v1.NexusOperationExecutionInfo\x12.\n\x05input\x18\x03 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12J\n\x14\x63ompletion_callbacks\x18\x07 \x03(\x0b\x32,.temporal.api.nexusoperation.v1.CallbackInfoB\t\n\x07outcome"\xa1\x01\n"PollNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x42\n\nwait_stage\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage"\xec\x02\n#PollNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x42\n\nwait_stage\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage\x12\x17\n\x0foperation_token\x18\x03 \x01(\t\x12\x65\n&propagated_nexus_serialization_context\x18\x06 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07outcome"s\n#ListNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x8b\x01\n$ListNexusOperationExecutionsResponse\x12J\n\noperations\x18\x01 \x03(\x0b\x32\x36.temporal.api.nexus.v1.NexusOperationExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountActivityExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"H\n$CountNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xf9\x01\n%CountNexusOperationExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12g\n\x06groups\x18\x02 \x03(\x0b\x32W.temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x95\x01\n%RequestCancelActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelActivityExecutionResponse"\x91\x01\n!TerminateActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"$\n"TerminateActivityExecutionResponse"X\n\x1e\x44\x65leteActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"!\n\x1f\x44\x65leteActivityExecutionResponse"\x9c\x01\n+RequestCancelNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t".\n,RequestCancelNexusOperationExecutionResponse"\x98\x01\n\'TerminateNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"*\n(TerminateNexusOperationExecutionResponse"_\n$DeleteNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\'\n%DeleteNexusOperationExecutionResponse"\x9d\x01\n(PollWorkflowExecutionTimeSkippingRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x17\n\x0f\x66\x61st_forward_id\x18\x03 \x01(\t"\xe8\x01\n)PollWorkflowExecutionTimeSkippingResponse\x12T\n\x1b\x66\x61st_forward_polling_result\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.FastForwardPollingResult\x12\x15\n\rfailed_reason\x18\x02 \x01(\t\x12N\n\x11\x66\x61st_forward_info\x18\x03 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfoB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' + b'\n6temporal/api/workflowservice/v1/request_response.proto\x12\x1ftemporal.api.workflowservice.v1\x1a+temporal/api/enums/v1/batch_operation.proto\x1a"temporal/api/enums/v1/common.proto\x1a$temporal/api/enums/v1/workflow.proto\x1a%temporal/api/enums/v1/namespace.proto\x1a(temporal/api/enums/v1/failed_cause.proto\x1a!temporal/api/enums/v1/query.proto\x1a!temporal/api/enums/v1/reset.proto\x1a&temporal/api/enums/v1/task_queue.proto\x1a&temporal/api/enums/v1/deployment.proto\x1a"temporal/api/enums/v1/update.proto\x1a)temporal/api/enums/v1/time_skipping.proto\x1a$temporal/api/enums/v1/activity.proto\x1a!temporal/api/enums/v1/nexus.proto\x1a&temporal/api/activity/v1/message.proto\x1a$temporal/api/common/v1/message.proto\x1a%temporal/api/history/v1/message.proto\x1a&temporal/api/workflow/v1/message.proto\x1a%temporal/api/command/v1/message.proto\x1a$temporal/api/compute/v1/config.proto\x1a(temporal/api/deployment/v1/message.proto\x1a%temporal/api/failure/v1/message.proto\x1a$temporal/api/filter/v1/message.proto\x1a&temporal/api/protocol/v1/message.proto\x1a\'temporal/api/namespace/v1/message.proto\x1a#temporal/api/query/v1/message.proto\x1a)temporal/api/replication/v1/message.proto\x1a#temporal/api/rules/v1/message.proto\x1a\'temporal/api/sdk/v1/worker_config.proto\x1a&temporal/api/schedule/v1/message.proto\x1a\'temporal/api/taskqueue/v1/message.proto\x1a$temporal/api/update/v1/message.proto\x1a%temporal/api/version/v1/message.proto\x1a#temporal/api/batch/v1/message.proto\x1a\x30temporal/api/sdk/v1/task_complete_metadata.proto\x1a\'temporal/api/sdk/v1/user_metadata.proto\x1a#temporal/api/nexus/v1/message.proto\x1a,temporal/api/nexusoperation/v1/message.proto\x1a$temporal/api/worker/v1/message.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\x88\x05\n\x18RegisterNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bowner_email\x18\x03 \x01(\t\x12\x46\n#workflow_execution_retention_period\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12G\n\x08\x63lusters\x18\x05 \x03(\x0b\x32\x35.temporal.api.replication.v1.ClusterReplicationConfig\x12\x1b\n\x13\x61\x63tive_cluster_name\x18\x06 \x01(\t\x12Q\n\x04\x64\x61ta\x18\x07 \x03(\x0b\x32\x43.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry\x12\x16\n\x0esecurity_token\x18\x08 \x01(\t\x12\x1b\n\x13is_global_namespace\x18\t \x01(\x08\x12\x44\n\x16history_archival_state\x18\n \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1c\n\x14history_archival_uri\x18\x0b \x01(\t\x12G\n\x19visibility_archival_state\x18\x0c \x01(\x0e\x32$.temporal.api.enums.v1.ArchivalState\x12\x1f\n\x17visibility_archival_uri\x18\r \x01(\t\x1a+\n\tDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x1b\n\x19RegisterNamespaceResponse"\x89\x01\n\x15ListNamespacesRequest\x12\x11\n\tpage_size\x18\x01 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c\x12\x44\n\x10namespace_filter\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceFilter"\x81\x01\n\x16ListNamespacesResponse\x12N\n\nnamespaces\x18\x01 \x03(\x0b\x32:.temporal.api.workflowservice.v1.DescribeNamespaceResponse\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"S\n\x18\x44\x65scribeNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x18\n\x10weak_consistency\x18\x03 \x01(\x08"\x81\x04\n\x19\x44\x65scribeNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08\x12\x45\n\x10\x66\x61ilover_history\x18\x06 \x03(\x0b\x32+.temporal.api.replication.v1.FailoverStatus\x12J\n\x12poller_group_infos\x18\x07 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x08 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xcf\x02\n\x16UpdateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x43\n\x0bupdate_info\x18\x02 \x01(\x0b\x32..temporal.api.namespace.v1.UpdateNamespaceInfo\x12:\n\x06\x63onfig\x18\x03 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x04 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x16\n\x0esecurity_token\x18\x05 \x01(\t\x12\x19\n\x11\x64\x65lete_bad_binary\x18\x06 \x01(\t\x12\x19\n\x11promote_namespace\x18\x07 \x01(\x08"\xa3\x02\n\x17UpdateNamespaceResponse\x12@\n\x0enamespace_info\x18\x01 \x01(\x0b\x32(.temporal.api.namespace.v1.NamespaceInfo\x12:\n\x06\x63onfig\x18\x02 \x01(\x0b\x32*.temporal.api.namespace.v1.NamespaceConfig\x12S\n\x12replication_config\x18\x03 \x01(\x0b\x32\x37.temporal.api.replication.v1.NamespaceReplicationConfig\x12\x18\n\x10\x66\x61ilover_version\x18\x04 \x01(\x03\x12\x1b\n\x13is_global_namespace\x18\x05 \x01(\x08"F\n\x19\x44\x65precateNamespaceRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x16\n\x0esecurity_token\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65precateNamespaceResponse"\x97\x0e\n\x1dStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x39\n\x0cretry_policy\x18\x0c \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\r \x01(\t\x12*\n\x04memo\x18\x0e \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x1f\n\x17request_eager_execution\x18\x11 \x01(\x08\x12;\n\x11\x63ontinued_failure\x18\x12 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12@\n\x16last_completion_result\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12>\n\x14\x63ompletion_callbacks\x18\x15 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12H\n\x13on_conflict_options\x18\x1a \x01(\x0b\x32+.temporal.api.workflow.v1.OnConflictOptions\x12\x32\n\x08priority\x18\x1b \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\\\n\x1f\x65\x61ger_worker_deployment_options\x18\x1c \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12H\n\x14time_skipping_config\x18\x1d \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfig\x12\x65\n&propagated_nexus_serialization_context\x18\x1e \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12]\n\x1ftime_skipping_state_propagation\x18\x1f \x01(\x0b\x32\x34.temporal.api.common.v1.TimeSkippingStatePropagation"\xaa\x02\n\x1eStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12\x0f\n\x07started\x18\x03 \x01(\x08\x12>\n\x06status\x18\x05 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowExecutionStatus\x12[\n\x13\x65\x61ger_workflow_task\x18\x02 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xaa\x02\n"GetWorkflowExecutionHistoryRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c\x12\x16\n\x0ewait_new_event\x18\x05 \x01(\x08\x12P\n\x19history_event_filter_type\x18\x06 \x01(\x0e\x32-.temporal.api.enums.v1.HistoryEventFilterType\x12\x15\n\rskip_archival\x18\x07 \x01(\x08"\xa1\x02\n#GetWorkflowExecutionHistoryResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x35\n\x0braw_history\x18\x02 \x03(\x0b\x32 .temporal.api.common.v1.DataBlob\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x10\n\x08\x61rchived\x18\x04 \x01(\x08\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xb0\x01\n)GetWorkflowExecutionHistoryReverseRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x19\n\x11maximum_page_size\x18\x03 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x04 \x01(\x0c"x\n*GetWorkflowExecutionHistoryReverseResponse\x12\x31\n\x07history\x18\x01 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\xfd\x03\n\x1cPollWorkflowTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x04 \x01(\tB\x02\x18\x01\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x43\n\x10poller_pool_info\x18\x0b \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfoJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\xbf\x08\n\x1dPollWorkflowTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12!\n\x19previous_started_event_id\x18\x04 \x01(\x03\x12\x18\n\x10started_event_id\x18\x05 \x01(\x03\x12\x0f\n\x07\x61ttempt\x18\x06 \x01(\x05\x12\x1a\n\x12\x62\x61\x63klog_count_hint\x18\x07 \x01(\x03\x12\x31\n\x07history\x18\x08 \x01(\x0b\x32 .temporal.api.history.v1.History\x12\x17\n\x0fnext_page_token\x18\t \x01(\x0c\x12\x33\n\x05query\x18\n \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x1dworkflow_execution_task_queue\x18\x0b \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x32\n\x0escheduled_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\\\n\x07queries\x18\x0e \x03(\x0b\x32K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry\x12\x33\n\x08messages\x18\x0f \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12Q\n\x17poller_scaling_decision\x18\x10 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x11 \x01(\t\x12J\n\x12poller_group_infos\x18\x12 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x13 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x1aT\n\x0cQueriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x33\n\x05value\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery:\x02\x38\x01"\xba\n\n#RespondWorkflowTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x32\n\x08\x63ommands\x18\x02 \x03(\x0b\x32 .temporal.api.command.v1.Command\x12\x10\n\x08identity\x18\x03 \x01(\t\x12O\n\x11sticky_attributes\x18\x04 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.StickyExecutionAttributes\x12 \n\x18return_new_workflow_task\x18\x05 \x01(\x08\x12&\n\x1e\x66orce_create_new_workflow_task\x18\x06 \x01(\x08\x12\x1b\n\x0f\x62inary_checksum\x18\x07 \x01(\tB\x02\x18\x01\x12m\n\rquery_results\x18\x08 \x03(\x0b\x32V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry\x12\x11\n\tnamespace\x18\t \x01(\t\x12\x13\n\x0bresource_id\x18\x12 \x01(\t\x12L\n\x14worker_version_stamp\x18\n \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12\x33\n\x08messages\x18\x0b \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12H\n\x0csdk_metadata\x18\x0c \x01(\x0b\x32\x32.temporal.api.sdk.v1.WorkflowTaskCompletedMetadata\x12\x43\n\x11metering_metadata\x18\r \x01(\x0b\x32(.temporal.api.common.v1.MeteringMetadata\x12g\n\x0c\x63\x61pabilities\x18\x0e \x01(\x0b\x32Q.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.Capabilities\x12>\n\ndeployment\x18\x0f \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12\x46\n\x13versioning_behavior\x18\x10 \x01(\x0e\x32).temporal.api.enums.v1.VersioningBehavior\x12O\n\x12\x64\x65ployment_options\x18\x11 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x1b\n\x13worker_instance_key\x18\x13 \x01(\t\x12!\n\x19worker_control_task_queue\x18\x14 \x01(\t\x12\x13\n\x0bpage_number\x18\x15 \x01(\x05\x12\x19\n\x11intermediate_page\x18\x16 \x01(\x08\x1a_\n\x11QueryResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32*.temporal.api.query.v1.WorkflowQueryResult:\x02\x38\x01\x1a\x45\n\x0c\x43\x61pabilities\x12\x35\n-discard_speculative_workflow_task_with_events\x18\x01 \x01(\x08"\xf5\x01\n$RespondWorkflowTaskCompletedResponse\x12U\n\rworkflow_task\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse\x12V\n\x0e\x61\x63tivity_tasks\x18\x02 \x03(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse\x12\x1e\n\x16reset_history_event_id\x18\x03 \x01(\x03"\x8d\x04\n RespondWorkflowTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12=\n\x05\x63\x61use\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x31\n\x07\x66\x61ilure\x18\x03 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x1b\n\x0f\x62inary_checksum\x18\x05 \x01(\tB\x02\x18\x01\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x0b \x01(\t\x12\x33\n\x08messages\x18\x07 \x03(\x0b\x32!.temporal.api.protocol.v1.Message\x12\x46\n\x0eworker_version\x18\x08 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\t \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\n \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"#\n!RespondWorkflowTaskFailedResponse"\xab\x04\n\x1cPollActivityTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\n \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12!\n\x19worker_control_task_queue\x18\t \x01(\t\x12I\n\x13task_queue_metadata\x18\x04 \x01(\x0b\x32,.temporal.api.taskqueue.v1.TaskQueueMetadata\x12Z\n\x1bworker_version_capabilities\x18\x05 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x43\n\x10poller_pool_info\x18\x0b \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfoJ\x04\x08\x07\x10\x08R\x10worker_heartbeat"\x84\n\n\x1dPollActivityTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x1a\n\x12workflow_namespace\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x45\n\x12workflow_execution\x18\x04 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x13\n\x0b\x61\x63tivity_id\x18\x06 \x01(\t\x12.\n\x06header\x18\x07 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12/\n\x05input\x18\x08 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12;\n\x11heartbeat_details\x18\t \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x32\n\x0escheduled_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x42\n\x1e\x63urrent_attempt_scheduled_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0cstarted_time\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07\x61ttempt\x18\r \x01(\x05\x12<\n\x19schedule_to_close_timeout\x18\x0e \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\x10 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x11 \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12Q\n\x17poller_scaling_decision\x18\x12 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x32\n\x08priority\x18\x13 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12\x17\n\x0f\x61\x63tivity_run_id\x18\x14 \x01(\t\x12J\n\x12poller_group_infos\x18\x15 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x16 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xa5\x01\n"RecordActivityTaskHeartbeatRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x05 \x01(\t"p\n#RecordActivityTaskHeartbeatResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xcf\x01\n&RecordActivityTaskHeartbeatByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"t\n\'RecordActivityTaskHeartbeatByIdResponse\x12\x18\n\x10\x63\x61ncel_requested\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x63tivity_paused\x18\x02 \x01(\x08\x12\x16\n\x0e\x61\x63tivity_reset\x18\x03 \x01(\x08"\xfe\x02\n#RespondActivityTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x30\n\x06result\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"&\n$RespondActivityTaskCompletedResponse"\xcf\x01\n\'RespondActivityTaskCompletedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x30\n\x06result\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"*\n(RespondActivityTaskCompletedByIdResponse"\xfd\x03\n RespondActivityTaskFailedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x66\x61ilure\x18\x02 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12@\n\x16last_heartbeat_details\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x46\n\x0eworker_version\x18\x06 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x07 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x08 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12=\n\x05\x63\x61use\x18\n \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"W\n!RespondActivityTaskFailedResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xce\x02\n$RespondActivityTaskFailedByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x10\n\x08identity\x18\x06 \x01(\t\x12@\n\x16last_heartbeat_details\x18\x07 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12=\n\x05\x63\x61use\x18\t \x01(\x0e\x32..temporal.api.enums.v1.ActivityTaskFailedCause"[\n%RespondActivityTaskFailedByIdResponse\x12\x32\n\x08\x66\x61ilures\x18\x01 \x03(\x0b\x32 .temporal.api.failure.v1.Failure"\xfe\x02\n"RespondActivityTaskCanceledRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12\x31\n\x07\x64\x65tails\x18\x02 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x11\n\tnamespace\x18\x04 \x01(\t\x12\x13\n\x0bresource_id\x18\x08 \x01(\t\x12\x46\n\x0eworker_version\x18\x05 \x01(\x0b\x32*.temporal.api.common.v1.WorkerVersionStampB\x02\x18\x01\x12>\n\ndeployment\x18\x06 \x01(\x0b\x32&.temporal.api.deployment.v1.DeploymentB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions"%\n#RespondActivityTaskCanceledResponse"\xa0\x02\n&RespondActivityTaskCanceledByIdRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x06 \x01(\t\x12O\n\x12\x64\x65ployment_options\x18\x07 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x13\n\x0bresource_id\x18\x08 \x01(\t")\n\'RespondActivityTaskCanceledByIdResponse"\x84\x02\n%RequestCancelWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"(\n&RequestCancelWorkflowExecutionResponse"\xde\x02\n\x1eSignalWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x13\n\x0bsignal_name\x18\x03 \x01(\t\x12/\n\x05input\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x13\n\x07\x63ontrol\x18\x07 \x01(\tB\x02\x18\x01\x12.\n\x06header\x18\x08 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12+\n\x05links\x18\n \x03(\x0b\x32\x1c.temporal.api.common.v1.LinkJ\x04\x08\t\x10\n"M\n\x1fSignalWorkflowExecutionResponse\x12*\n\x04link\x18\x01 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xbb\n\n\'SignalWithStartWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12;\n\rworkflow_type\x18\x03 \x01(\x0b\x32$.temporal.api.common.v1.WorkflowType\x12\x38\n\ntask_queue\x18\x04 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12/\n\x05input\x18\x05 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12=\n\x1aworkflow_execution_timeout\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x37\n\x14workflow_run_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\x15workflow_task_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x10\n\x08identity\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12N\n\x18workflow_id_reuse_policy\x18\x0b \x01(\x0e\x32,.temporal.api.enums.v1.WorkflowIdReusePolicy\x12T\n\x1bworkflow_id_conflict_policy\x18\x16 \x01(\x0e\x32/.temporal.api.enums.v1.WorkflowIdConflictPolicy\x12\x13\n\x0bsignal_name\x18\x0c \x01(\t\x12\x36\n\x0csignal_input\x18\r \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x13\n\x07\x63ontrol\x18\x0e \x01(\tB\x02\x18\x01\x12\x39\n\x0cretry_policy\x18\x0f \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12\x15\n\rcron_schedule\x18\x10 \x01(\t\x12*\n\x04memo\x18\x11 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x12 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x13 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x37\n\x14workflow_start_delay\x18\x14 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x38\n\ruser_metadata\x18\x17 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12+\n\x05links\x18\x18 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12I\n\x13versioning_override\x18\x19 \x01(\x0b\x32,.temporal.api.workflow.v1.VersioningOverride\x12\x32\n\x08priority\x18\x1a \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12H\n\x14time_skipping_config\x18\x1b \x01(\x0b\x32*.temporal.api.common.v1.TimeSkippingConfigJ\x04\x08\x15\x10\x16"\x9e\x01\n(SignalWithStartWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x04 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12\x31\n\x0bsignal_link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"\xc1\x03\n\x1dResetWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12%\n\x1dworkflow_task_finish_event_id\x18\x04 \x01(\x03\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12G\n\x12reset_reapply_type\x18\x06 \x01(\x0e\x32\'.temporal.api.enums.v1.ResetReapplyTypeB\x02\x18\x01\x12S\n\x1breset_reapply_exclude_types\x18\x07 \x03(\x0e\x32..temporal.api.enums.v1.ResetReapplyExcludeType\x12K\n\x15post_reset_operations\x18\x08 \x03(\x0b\x32,.temporal.api.workflow.v1.PostResetOperation\x12\x10\n\x08identity\x18\t \x01(\t"0\n\x1eResetWorkflowExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t"\x9f\x02\n!TerminateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x31\n\x07\x64\x65tails\x18\x04 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x1e\n\x16\x66irst_execution_run_id\x18\x06 \x01(\t\x12+\n\x05links\x18\x07 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link"$\n"TerminateWorkflowExecutionResponse"z\n\x1e\x44\x65leteWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"!\n\x1f\x44\x65leteWorkflowExecutionResponse"\xc9\x02\n!ListOpenWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x42\t\n\x07\x66ilters"\x82\x01\n"ListOpenWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8a\x03\n#ListClosedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x42\n\x11start_time_filter\x18\x04 \x01(\x0b\x32\'.temporal.api.filter.v1.StartTimeFilter\x12K\n\x10\x65xecution_filter\x18\x05 \x01(\x0b\x32/.temporal.api.filter.v1.WorkflowExecutionFilterH\x00\x12\x41\n\x0btype_filter\x18\x06 \x01(\x0b\x32*.temporal.api.filter.v1.WorkflowTypeFilterH\x00\x12=\n\rstatus_filter\x18\x07 \x01(\x0b\x32$.temporal.api.filter.v1.StatusFilterH\x00\x42\t\n\x07\x66ilters"\x84\x01\n$ListClosedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dListWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eListWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"u\n%ListArchivedWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x86\x01\n&ListArchivedWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"m\n\x1dScanWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"~\n\x1eScanWorkflowExecutionsResponse\x12\x43\n\nexecutions\x18\x01 \x03(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountWorkflowExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountWorkflowExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x1c\n\x1aGetSearchAttributesRequest"\xc9\x01\n\x1bGetSearchAttributesResponse\x12T\n\x04keys\x18\x01 \x03(\x0b\x32\x46.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntry\x1aT\n\tKeysEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x36\n\x05value\x18\x02 \x01(\x0e\x32\'.temporal.api.enums.v1.IndexedValueType:\x02\x38\x01"\xe9\x02\n RespondQueryTaskCompletedRequest\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12>\n\x0e\x63ompleted_type\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.QueryResultType\x12\x36\n\x0cquery_result\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x15\n\rerror_message\x18\x04 \x01(\t\x12\x11\n\tnamespace\x18\x06 \x01(\t\x12\x31\n\x07\x66\x61ilure\x18\x07 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12=\n\x05\x63\x61use\x18\x08 \x01(\x0e\x32..temporal.api.enums.v1.WorkflowTaskFailedCause\x12\x17\n\x0fpoller_group_id\x18\t \x01(\tJ\x04\x08\x05\x10\x06"#\n!RespondQueryTaskCompletedResponse"n\n\x1bResetStickyTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x1e\n\x1cResetStickyTaskQueueResponse"\x9b\x02\n\x15ShutdownWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11sticky_task_queue\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x05 \x01(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x1b\n\x13worker_instance_key\x18\x06 \x01(\t\x12\x12\n\ntask_queue\x18\x07 \x01(\t\x12>\n\x10task_queue_types\x18\x08 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueType"\x18\n\x16ShutdownWorkerResponse"\xe9\x01\n\x14QueryWorkflowRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x33\n\x05query\x18\x03 \x01(\x0b\x32$.temporal.api.query.v1.WorkflowQuery\x12K\n\x16query_reject_condition\x18\x04 \x01(\x0e\x32+.temporal.api.enums.v1.QueryRejectCondition"\xb9\x01\n\x15QueryWorkflowResponse\x12\x36\n\x0cquery_result\x18\x01 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12<\n\x0equery_rejected\x18\x02 \x01(\x0b\x32$.temporal.api.query.v1.QueryRejected\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link"s\n DescribeWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution"\x99\x05\n!DescribeWorkflowExecutionResponse\x12K\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32\x31.temporal.api.workflow.v1.WorkflowExecutionConfig\x12P\n\x17workflow_execution_info\x18\x02 \x01(\x0b\x32/.temporal.api.workflow.v1.WorkflowExecutionInfo\x12I\n\x12pending_activities\x18\x03 \x03(\x0b\x32-.temporal.api.workflow.v1.PendingActivityInfo\x12M\n\x10pending_children\x18\x04 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingChildExecutionInfo\x12P\n\x15pending_workflow_task\x18\x05 \x01(\x0b\x32\x31.temporal.api.workflow.v1.PendingWorkflowTaskInfo\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.workflow.v1.CallbackInfo\x12U\n\x18pending_nexus_operations\x18\x07 \x03(\x0b\x32\x33.temporal.api.workflow.v1.PendingNexusOperationInfo\x12W\n\x16workflow_extended_info\x18\x08 \x01(\x0b\x32\x37.temporal.api.workflow.v1.WorkflowExecutionExtendedInfo"\x90\x04\n\x18\x44\x65scribeTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12=\n\x0ftask_queue_type\x18\x03 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x14\n\x0creport_stats\x18\x08 \x01(\x08\x12\x15\n\rreport_config\x18\x0b \x01(\x08\x12%\n\x19include_task_queue_status\x18\x04 \x01(\x08\x42\x02\x18\x01\x12\x42\n\x08\x61pi_mode\x18\x05 \x01(\x0e\x32,.temporal.api.enums.v1.DescribeTaskQueueModeB\x02\x18\x01\x12J\n\x08versions\x18\x06 \x01(\x0b\x32\x34.temporal.api.taskqueue.v1.TaskQueueVersionSelectionB\x02\x18\x01\x12\x42\n\x10task_queue_types\x18\x07 \x03(\x0e\x32$.temporal.api.enums.v1.TaskQueueTypeB\x02\x18\x01\x12\x1a\n\x0ereport_pollers\x18\t \x01(\x08\x42\x02\x18\x01\x12$\n\x18report_task_reachability\x18\n \x01(\x08\x42\x02\x18\x01"\xec\x07\n\x19\x44\x65scribeTaskQueueResponse\x12\x36\n\x07pollers\x18\x01 \x03(\x0b\x32%.temporal.api.taskqueue.v1.PollerInfo\x12\x38\n\x05stats\x18\x05 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12q\n\x15stats_by_priority_key\x18\x08 \x03(\x0b\x32R.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.StatsByPriorityKeyEntry\x12K\n\x0fversioning_info\x18\x04 \x01(\x0b\x32\x32.temporal.api.taskqueue.v1.TaskQueueVersioningInfo\x12:\n\x06\x63onfig\x18\x06 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig\x12k\n\x14\x65\x66\x66\x65\x63tive_rate_limit\x18\x07 \x01(\x0b\x32M.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.EffectiveRateLimit\x12I\n\x11task_queue_status\x18\x02 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueStatusB\x02\x18\x01\x12g\n\rversions_info\x18\x03 \x03(\x0b\x32L.temporal.api.workflowservice.v1.DescribeTaskQueueResponse.VersionsInfoEntryB\x02\x18\x01\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01\x1at\n\x12\x45\x66\x66\x65\x63tiveRateLimit\x12\x1b\n\x13requests_per_second\x18\x01 \x01(\x02\x12\x41\n\x11rate_limit_source\x18\x02 \x01(\x0e\x32&.temporal.api.enums.v1.RateLimitSource\x1a\x64\n\x11VersionsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12>\n\x05value\x18\x02 \x01(\x0b\x32/.temporal.api.taskqueue.v1.TaskQueueVersionInfo:\x02\x38\x01"\x17\n\x15GetClusterInfoRequest"\xd1\x03\n\x16GetClusterInfoResponse\x12h\n\x11supported_clients\x18\x01 \x03(\x0b\x32M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\x12\x12\n\ncluster_id\x18\x03 \x01(\t\x12:\n\x0cversion_info\x18\x04 \x01(\x0b\x32$.temporal.api.version.v1.VersionInfo\x12\x14\n\x0c\x63luster_name\x18\x05 \x01(\t\x12\x1b\n\x13history_shard_count\x18\x06 \x01(\x05\x12\x19\n\x11persistence_store\x18\x07 \x01(\t\x12\x18\n\x10visibility_store\x18\x08 \x01(\t\x12 \n\x18initial_failover_version\x18\t \x01(\x03\x12"\n\x1a\x66\x61ilover_version_increment\x18\n \x01(\x03\x1a\x37\n\x15SupportedClientsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x16\n\x14GetSystemInfoRequest"\xc1\x04\n\x15GetSystemInfoResponse\x12\x16\n\x0eserver_version\x18\x01 \x01(\t\x12Y\n\x0c\x63\x61pabilities\x18\x02 \x01(\x0b\x32\x43.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities\x1a\xb4\x03\n\x0c\x43\x61pabilities\x12\x1f\n\x17signal_and_query_header\x18\x01 \x01(\x08\x12&\n\x1einternal_error_differentiation\x18\x02 \x01(\x08\x12*\n"activity_failure_include_heartbeat\x18\x03 \x01(\x08\x12\x1a\n\x12supports_schedules\x18\x04 \x01(\x08\x12"\n\x1a\x65ncoded_failure_attributes\x18\x05 \x01(\x08\x12!\n\x19\x62uild_id_based_versioning\x18\x06 \x01(\x08\x12\x13\n\x0bupsert_memo\x18\x07 \x01(\x08\x12\x1c\n\x14\x65\x61ger_workflow_start\x18\x08 \x01(\x08\x12\x14\n\x0csdk_metadata\x18\t \x01(\x08\x12\'\n\x1f\x63ount_group_by_execution_status\x18\n \x01(\x08\x12\r\n\x05nexus\x18\x0b \x01(\x08\x12!\n\x19server_scaled_deployments\x18\x0c \x01(\x08\x12(\n server_scaled_provider_cloud_run\x18\r \x01(\x08"m\n\x1eListTaskQueuePartitionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x02 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue"\xdf\x01\n\x1fListTaskQueuePartitionsResponse\x12]\n\x1e\x61\x63tivity_task_queue_partitions\x18\x01 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata\x12]\n\x1eworkflow_task_queue_partitions\x18\x02 \x03(\x0b\x32\x35.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"\xcc\x02\n\x15\x43reateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12>\n\rinitial_patch\x18\x04 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12*\n\x04memo\x18\x07 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x08 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes"0\n\x16\x43reateScheduleResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"A\n\x17\x44\x65scribeScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t"\x8f\x02\n\x18\x44\x65scribeScheduleResponse\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x34\n\x04info\x18\x02 \x01(\x0b\x32&.temporal.api.schedule.v1.ScheduleInfo\x12*\n\x04memo\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo\x12\x43\n\x11search_attributes\x18\x04 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c"\xa4\x02\n\x15UpdateScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x34\n\x08schedule\x18\x03 \x01(\x0b\x32".temporal.api.schedule.v1.Schedule\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t\x12\x43\n\x11search_attributes\x18\x07 \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12*\n\x04memo\x18\x08 \x01(\x0b\x32\x1c.temporal.api.common.v1.Memo"\x18\n\x16UpdateScheduleResponse"\x9c\x01\n\x14PatchScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x36\n\x05patch\x18\x03 \x01(\x0b\x32\'.temporal.api.schedule.v1.SchedulePatch\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\x17\n\x15PatchScheduleResponse"\xa8\x01\n ListScheduleMatchingTimesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12.\n\nstart_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"S\n!ListScheduleMatchingTimesResponse\x12.\n\nstart_time\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.Timestamp"Q\n\x15\x44\x65leteScheduleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bschedule_id\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t"\x18\n\x16\x44\x65leteScheduleResponse"l\n\x14ListSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x19\n\x11maximum_page_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"p\n\x15ListSchedulesResponse\x12>\n\tschedules\x18\x01 \x03(\x0b\x32+.temporal.api.schedule.v1.ScheduleListEntry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"9\n\x15\x43ountSchedulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xdb\x01\n\x16\x43ountSchedulesResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12X\n\x06groups\x18\x02 \x03(\x0b\x32H.temporal.api.workflowservice.v1.CountSchedulesResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x86\x05\n\'UpdateWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12-\n#add_new_build_id_in_new_default_set\x18\x03 \x01(\tH\x00\x12\x87\x01\n\x1b\x61\x64\x64_new_compatible_build_id\x18\x04 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH\x00\x12!\n\x17promote_set_by_build_id\x18\x05 \x01(\tH\x00\x12%\n\x1bpromote_build_id_within_set\x18\x06 \x01(\tH\x00\x12h\n\nmerge_sets\x18\x07 \x01(\x0b\x32R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH\x00\x1ao\n\x17\x41\x64\x64NewCompatibleVersion\x12\x14\n\x0cnew_build_id\x18\x01 \x01(\t\x12$\n\x1c\x65xisting_compatible_build_id\x18\x02 \x01(\t\x12\x18\n\x10make_set_default\x18\x03 \x01(\x08\x1aI\n\tMergeSets\x12\x1c\n\x14primary_set_build_id\x18\x01 \x01(\t\x12\x1e\n\x16secondary_set_build_id\x18\x02 \x01(\tB\x0b\n\toperation"@\n(UpdateWorkerBuildIdCompatibilityResponseJ\x04\x08\x01\x10\x02R\x0eversion_set_id"_\n$GetWorkerBuildIdCompatibilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x10\n\x08max_sets\x18\x03 \x01(\x05"t\n%GetWorkerBuildIdCompatibilityResponse\x12K\n\x12major_version_sets\x18\x01 \x03(\x0b\x32/.temporal.api.taskqueue.v1.CompatibleVersionSet"\xb5\r\n"UpdateWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c\x12\x81\x01\n\x16insert_assignment_rule\x18\x04 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.InsertBuildIdAssignmentRuleH\x00\x12\x83\x01\n\x17replace_assignment_rule\x18\x05 \x01(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceBuildIdAssignmentRuleH\x00\x12\x81\x01\n\x16\x64\x65lete_assignment_rule\x18\x06 \x01(\x0b\x32_.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteBuildIdAssignmentRuleH\x00\x12\x8c\x01\n\x1c\x61\x64\x64_compatible_redirect_rule\x18\x07 \x01(\x0b\x32\x64.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.AddCompatibleBuildIdRedirectRuleH\x00\x12\x94\x01\n replace_compatible_redirect_rule\x18\x08 \x01(\x0b\x32h.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.ReplaceCompatibleBuildIdRedirectRuleH\x00\x12\x92\x01\n\x1f\x64\x65lete_compatible_redirect_rule\x18\t \x01(\x0b\x32g.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.DeleteCompatibleBuildIdRedirectRuleH\x00\x12l\n\x0f\x63ommit_build_id\x18\n \x01(\x0b\x32Q.temporal.api.workflowservice.v1.UpdateWorkerVersioningRulesRequest.CommitBuildIdH\x00\x1aq\n\x1bInsertBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x1a\x81\x01\n\x1cReplaceBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12>\n\x04rule\x18\x02 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.BuildIdAssignmentRule\x12\r\n\x05\x66orce\x18\x03 \x01(\x08\x1a@\n\x1b\x44\x65leteBuildIdAssignmentRule\x12\x12\n\nrule_index\x18\x01 \x01(\x05\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x1aj\n AddCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1an\n$ReplaceCompatibleBuildIdRedirectRule\x12\x46\n\x04rule\x18\x01 \x01(\x0b\x32\x38.temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule\x1a>\n#DeleteCompatibleBuildIdRedirectRule\x12\x17\n\x0fsource_build_id\x18\x01 \x01(\t\x1a\x37\n\rCommitBuildId\x12\x17\n\x0ftarget_build_id\x18\x01 \x01(\t\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\x42\x0b\n\toperation"\xfc\x01\n#UpdateWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"H\n\x1fGetWorkerVersioningRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x12\n\ntask_queue\x18\x02 \x01(\t"\xf9\x01\n GetWorkerVersioningRulesResponse\x12U\n\x10\x61ssignment_rules\x18\x01 \x03(\x0b\x32;.temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule\x12\x66\n\x19\x63ompatible_redirect_rules\x18\x02 \x03(\x0b\x32\x43.temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule\x12\x16\n\x0e\x63onflict_token\x18\x03 \x01(\x0c"\x9c\x01\n GetWorkerTaskReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tbuild_ids\x18\x02 \x03(\t\x12\x13\n\x0btask_queues\x18\x03 \x03(\t\x12=\n\x0creachability\x18\x04 \x01(\x0e\x32\'.temporal.api.enums.v1.TaskReachability"r\n!GetWorkerTaskReachabilityResponse\x12M\n\x15\x62uild_id_reachability\x18\x01 \x03(\x0b\x32..temporal.api.taskqueue.v1.BuildIdReachability"\x85\x02\n\x1eUpdateWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x1e\n\x16\x66irst_execution_run_id\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy\x12\x30\n\x07request\x18\x05 \x01(\x0b\x32\x1f.temporal.api.update.v1.Request"\xea\x02\n\x1fUpdateWorkflowExecutionResponse\x12\x35\n\nupdate_ref\x18\x01 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x30\n\x07outcome\x18\x02 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x03 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12*\n\x04link\x18\x04 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x65\n&propagated_nexus_serialization_context\x18\x05 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xd6\n\n\x1aStartBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x18\n\x10visibility_query\x18\x02 \x01(\t\x12\x0e\n\x06job_id\x18\x03 \x01(\t\x12\x0e\n\x06reason\x18\x04 \x01(\t\x12\x41\n\nexecutions\x18\x05 \x03(\x0b\x32).temporal.api.common.v1.WorkflowExecutionB\x02\x18\x01\x12<\n\x11target_executions\x18\x16 \x03(\x0b\x32!.temporal.api.common.v1.Execution\x12!\n\x19max_operations_per_second\x18\x06 \x01(\x02\x12Q\n\x15termination_operation\x18\n \x01(\x0b\x32\x30.temporal.api.batch.v1.BatchOperationTerminationH\x00\x12G\n\x10signal_operation\x18\x0b \x01(\x0b\x32+.temporal.api.batch.v1.BatchOperationSignalH\x00\x12S\n\x16\x63\x61ncellation_operation\x18\x0c \x01(\x0b\x32\x31.temporal.api.batch.v1.BatchOperationCancellationH\x00\x12K\n\x12\x64\x65letion_operation\x18\r \x01(\x0b\x32-.temporal.api.batch.v1.BatchOperationDeletionH\x00\x12\x45\n\x0freset_operation\x18\x0e \x01(\x0b\x32*.temporal.api.batch.v1.BatchOperationResetH\x00\x12p\n!update_workflow_options_operation\x18\x0f \x01(\x0b\x32\x43.temporal.api.batch.v1.BatchOperationUpdateWorkflowExecutionOptionsH\x00\x12^\n\x1cunpause_activities_operation\x18\x10 \x01(\x0b\x32\x36.temporal.api.batch.v1.BatchOperationUnpauseActivitiesH\x00\x12Z\n\x1areset_activities_operation\x18\x11 \x01(\x0b\x32\x34.temporal.api.batch.v1.BatchOperationResetActivitiesH\x00\x12g\n!update_activity_options_operation\x18\x12 \x01(\x0b\x32:.temporal.api.batch.v1.BatchOperationUpdateActivityOptionsH\x00\x12\\\n\x1b\x63\x61ncel_activities_operation\x18\x13 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationCancelActivitiesH\x00\x12\x62\n\x1eterminate_activities_operation\x18\x14 \x01(\x0b\x32\x38.temporal.api.batch.v1.BatchOperationTerminateActivitiesH\x00\x12\\\n\x1b\x64\x65lete_activities_operation\x18\x15 \x01(\x0b\x32\x35.temporal.api.batch.v1.BatchOperationDeleteActivitiesH\x00\x42\x0b\n\toperation"\x1d\n\x1bStartBatchOperationResponse"`\n\x19StopBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t"\x1c\n\x1aStopBatchOperationResponse"B\n\x1d\x44\x65scribeBatchOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0e\n\x06job_id\x18\x02 \x01(\t"\xd8\x03\n\x1e\x44\x65scribeBatchOperationResponse\x12\x41\n\x0eoperation_type\x18\x01 \x01(\x0e\x32).temporal.api.enums.v1.BatchOperationType\x12\x0e\n\x06job_id\x18\x02 \x01(\t\x12\x39\n\x05state\x18\x03 \x01(\x0e\x32*.temporal.api.enums.v1.BatchOperationState\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nclose_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1d\n\x15total_operation_count\x18\x06 \x01(\x03\x12 \n\x18\x63omplete_operation_count\x18\x07 \x01(\x03\x12\x1f\n\x17\x66\x61ilure_operation_count\x18\x08 \x01(\x03\x12\x10\n\x08identity\x18\t \x01(\t\x12\x0e\n\x06reason\x18\n \x01(\t\x12\r\n\x05query\x18\x0b \x01(\t\x12\x35\n\nexecutions\x18\x0c \x03(\x0b\x32!.temporal.api.common.v1.Execution"[\n\x1aListBatchOperationsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"y\n\x1bListBatchOperationsResponse\x12\x41\n\x0eoperation_info\x18\x01 \x03(\x0b\x32).temporal.api.batch.v1.BatchOperationInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xb9\x01\n"PollWorkflowExecutionUpdateRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\nupdate_ref\x18\x02 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x37\n\x0bwait_policy\x18\x04 \x01(\x0b\x32".temporal.api.update.v1.WaitPolicy"\xc2\x02\n#PollWorkflowExecutionUpdateResponse\x12\x30\n\x07outcome\x18\x01 \x01(\x0b\x32\x1f.temporal.api.update.v1.Outcome\x12K\n\x05stage\x18\x02 \x01(\x0e\x32<.temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage\x12\x35\n\nupdate_ref\x18\x03 \x01(\x0b\x32!.temporal.api.update.v1.UpdateRef\x12\x65\n&propagated_nexus_serialization_context\x18\x04 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"\xe5\x03\n\x19PollNexusTaskQueueRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x38\n\ntask_queue\x18\x03 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12\x17\n\x0fpoller_group_id\x18\t \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x08 \x01(\t\x12Z\n\x1bworker_version_capabilities\x18\x04 \x01(\x0b\x32\x31.temporal.api.common.v1.WorkerVersionCapabilitiesB\x02\x18\x01\x12O\n\x12\x64\x65ployment_options\x18\x06 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentOptions\x12\x41\n\x10worker_heartbeat\x18\x07 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x43\n\x10poller_pool_info\x18\n \x01(\x0b\x32).temporal.api.taskqueue.v1.PollerPoolInfo"\xe2\x02\n\x1aPollNexusTaskQueueResponse\x12\x12\n\ntask_token\x18\x01 \x01(\x0c\x12/\n\x07request\x18\x02 \x01(\x0b\x32\x1e.temporal.api.nexus.v1.Request\x12Q\n\x17poller_scaling_decision\x18\x03 \x01(\x0b\x32\x30.temporal.api.taskqueue.v1.PollerScalingDecision\x12\x17\n\x0fpoller_group_id\x18\x04 \x01(\t\x12J\n\x12poller_group_infos\x18\x05 \x03(\x0b\x32*.temporal.api.taskqueue.v1.PollerGroupInfoB\x02\x18\x01\x12G\n\x12poller_groups_info\x18\x06 \x01(\x0b\x32+.temporal.api.taskqueue.v1.PollerGroupsInfo"\xa7\x01\n RespondNexusTaskCompletedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x31\n\x08response\x18\x04 \x01(\x0b\x32\x1f.temporal.api.nexus.v1.Response\x12\x17\n\x0fpoller_group_id\x18\x05 \x01(\t"#\n!RespondNexusTaskCompletedResponse"\xdc\x01\n\x1dRespondNexusTaskFailedRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_token\x18\x03 \x01(\x0c\x12\x36\n\x05\x65rror\x18\x04 \x01(\x0b\x32#.temporal.api.nexus.v1.HandlerErrorB\x02\x18\x01\x12\x31\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.Failure\x12\x17\n\x0fpoller_group_id\x18\x06 \x01(\t" \n\x1eRespondNexusTaskFailedResponse"\xf4\x02\n\x1c\x45xecuteMultiOperationRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12[\n\noperations\x18\x02 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationRequest.Operation\x12\x13\n\x0bresource_id\x18\x03 \x01(\t\x1a\xce\x01\n\tOperation\x12X\n\x0estart_workflow\x18\x01 \x01(\x0b\x32>.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestH\x00\x12Z\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32?.temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequestH\x00\x42\x0b\n\toperation"\xcc\x02\n\x1d\x45xecuteMultiOperationResponse\x12Z\n\tresponses\x18\x01 \x03(\x0b\x32G.temporal.api.workflowservice.v1.ExecuteMultiOperationResponse.Response\x1a\xce\x01\n\x08Response\x12Y\n\x0estart_workflow\x18\x01 \x01(\x0b\x32?.temporal.api.workflowservice.v1.StartWorkflowExecutionResponseH\x00\x12[\n\x0fupdate_workflow\x18\x02 \x01(\x0b\x32@.temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponseH\x00\x42\n\n\x08response"\xd0\x02\n\x1cUpdateActivityOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x04 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x0c\n\x02id\x18\x06 \x01(\tH\x00\x12\x0e\n\x04type\x18\x07 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\t \x01(\x08H\x00\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x42\n\n\x08\x61\x63tivity"\xbf\x02\n%UpdateActivityExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x43\n\x10\x61\x63tivity_options\x18\x06 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions\x12/\n\x0bupdate_mask\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x18\n\x10restore_original\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t"d\n\x1dUpdateActivityOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"m\n&UpdateActivityExecutionOptionsResponse\x12\x43\n\x10\x61\x63tivity_options\x18\x01 \x01(\x0b\x32).temporal.api.activity.v1.ActivityOptions"\xc7\x01\n\x14PauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x12\n\nrequest_id\x18\x07 \x01(\tB\n\n\x08\x61\x63tivity"\xb7\x01\n\x1dPauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t\x12\x13\n\x0bresource_id\x18\x07 \x01(\t\x12\x12\n\nrequest_id\x18\x08 \x01(\t"\x17\n\x15PauseActivityResponse" \n\x1ePauseActivityExecutionResponse"\x98\x02\n\x16UnpauseActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x15\n\x0bunpause_all\x18\x06 \x01(\x08H\x00\x12\x16\n\x0ereset_attempts\x18\x07 \x01(\x08\x12\x17\n\x0freset_heartbeat\x18\x08 \x01(\x08\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\n\n\x08\x61\x63tivity"\x91\x02\n\x1fUnpauseActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x08 \x01(\t\x12)\n\x06jitter\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x13\n\x0bresource_id\x18\n \x01(\t\x12\x12\n\nrequest_id\x18\x0b \x01(\tJ\x04\x08\x06\x10\x07J\x04\x08\x07\x10\x08R\x0ereset_attemptsR\x0freset_heartbeat"\x19\n\x17UnpauseActivityResponse""\n UnpauseActivityExecutionResponse"\xb3\x02\n\x14ResetActivityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x0e\n\x04type\x18\x05 \x01(\tH\x00\x12\x13\n\tmatch_all\x18\n \x01(\x08H\x00\x12\x17\n\x0freset_heartbeat\x18\x06 \x01(\x08\x12\x13\n\x0bkeep_paused\x18\x07 \x01(\x08\x12)\n\x06jitter\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\t \x01(\x08\x42\n\n\x08\x61\x63tivity"\xa2\x02\n\x1dResetActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x03 \x01(\t\x12\x0e\n\x06run_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0bkeep_paused\x18\x06 \x01(\x08\x12)\n\x06jitter\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12 \n\x18restore_original_options\x18\x08 \x01(\x08\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\x12\n\nrequest_id\x18\n \x01(\t\x12\x17\n\x0freset_heartbeat\x18\x0b \x01(\x08"\x17\n\x15ResetActivityResponse" \n\x1eResetActivityExecutionResponse"\x9c\x02\n%UpdateWorkflowExecutionOptionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12V\n\x1aworkflow_execution_options\x18\x03 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x10\n\x08identity\x18\x05 \x01(\t"\xb1\x01\n&UpdateWorkflowExecutionOptionsResponse\x12V\n\x1aworkflow_execution_options\x18\x01 \x01(\x0b\x32\x32.temporal.api.workflow.v1.WorkflowExecutionOptions\x12/\n\x0bupdate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"j\n\x19\x44\x65scribeDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"a\n\x1a\x44\x65scribeDeploymentResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xc2\x01\n&DescribeWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x1f\n\x17report_task_queue_stats\x18\x04 \x01(\x08"\x8c\x05\n\'DescribeWorkerDeploymentVersionResponse\x12_\n\x1eworker_deployment_version_info\x18\x01 \x01(\x0b\x32\x37.temporal.api.deployment.v1.WorkerDeploymentVersionInfo\x12v\n\x13version_task_queues\x18\x02 \x03(\x0b\x32Y.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue\x1a\x87\x03\n\x10VersionTaskQueue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x32\n\x04type\x18\x02 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12\x38\n\x05stats\x18\x03 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats\x12\x90\x01\n\x15stats_by_priority_key\x18\x04 \x03(\x0b\x32q.temporal.api.workflowservice.v1.DescribeWorkerDeploymentVersionResponse.VersionTaskQueue.StatsByPriorityKeyEntry\x1a\x64\n\x17StatsByPriorityKeyEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).temporal.api.taskqueue.v1.TaskQueueStats:\x02\x38\x01"M\n\x1f\x44\x65scribeWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t"\x8c\x01\n DescribeWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12P\n\x16worker_deployment_info\x18\x02 \x01(\x0b\x32\x30.temporal.api.deployment.v1.WorkerDeploymentInfo"l\n\x16ListDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\x13\n\x0bseries_name\x18\x04 \x01(\t"w\n\x17ListDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12\x43\n\x0b\x64\x65ployments\x18\x02 \x03(\x0b\x32..temporal.api.deployment.v1.DeploymentListInfo"\xcd\x01\n\x1bSetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment\x12\x10\n\x08identity\x18\x03 \x01(\t\x12M\n\x0fupdate_metadata\x18\x04 \x01(\x0b\x32\x34.temporal.api.deployment.v1.UpdateDeploymentMetadata"\xb9\x01\n\x1cSetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12L\n\x18previous_deployment_info\x18\x02 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"\xe5\x01\n(SetWorkerDeploymentCurrentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x07 \x01(\t\x12\x16\n\x0e\x63onflict_token\x18\x04 \x01(\x0c\x12\x10\n\x08identity\x18\x05 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x06 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\t \x01(\x08"\xbf\x01\n)SetWorkerDeploymentCurrentVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x03 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01"\xf9\x01\n(SetWorkerDeploymentRampingVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x13\n\x07version\x18\x03 \x01(\tB\x02\x18\x01\x12\x10\n\x08\x62uild_id\x18\x08 \x01(\t\x12\x12\n\npercentage\x18\x04 \x01(\x02\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\t\x12"\n\x1aignore_missing_task_queues\x18\x07 \x01(\x08\x12\x18\n\x10\x61llow_no_pollers\x18\n \x01(\x08"\xe0\x01\n)SetWorkerDeploymentRampingVersionResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12\x1c\n\x10previous_version\x18\x02 \x01(\tB\x02\x18\x01\x12\\\n\x1bprevious_deployment_version\x18\x04 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersionB\x02\x18\x01\x12\x1f\n\x13previous_percentage\x18\x03 \x01(\x02\x42\x02\x18\x01"q\n\x1d\x43reateWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"8\n\x1e\x43reateWorkerDeploymentResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c"]\n\x1cListWorkerDeploymentsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c"\x9f\x05\n\x1dListWorkerDeploymentsResponse\x12\x17\n\x0fnext_page_token\x18\x01 \x01(\x0c\x12r\n\x12worker_deployments\x18\x02 \x03(\x0b\x32V.temporal.api.workflowservice.v1.ListWorkerDeploymentsResponse.WorkerDeploymentSummary\x1a\xf0\x03\n\x17WorkerDeploymentSummary\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x41\n\x0erouting_config\x18\x03 \x01(\x0b\x32).temporal.api.deployment.v1.RoutingConfig\x12o\n\x16latest_version_summary\x18\x04 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17\x63urrent_version_summary\x18\x05 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary\x12p\n\x17ramping_version_summary\x18\x06 \x01(\x0b\x32O.temporal.api.deployment.v1.WorkerDeploymentInfo.WorkerDeploymentVersionSummary"\xf0\x01\n$CreateWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12>\n\x0e\x63ompute_config\x18\x04 \x01(\x0b\x32&.temporal.api.compute.v1.ComputeConfig\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t"\'\n%CreateWorkerDeploymentVersionResponse"\xc8\x01\n$DeleteWorkerDeploymentVersionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x15\n\rskip_drainage\x18\x03 \x01(\x08\x12\x10\n\x08identity\x18\x04 \x01(\t"\'\n%DeleteWorkerDeploymentVersionResponse"]\n\x1d\x44\x65leteWorkerDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t" \n\x1e\x44\x65leteWorkerDeploymentResponse"\x84\x04\n1UpdateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x99\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32r.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"4\n2UpdateWorkerDeploymentVersionComputeConfigResponse"\xf4\x03\n3ValidateWorkerDeploymentVersionComputeConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12O\n\x12\x64\x65ployment_version\x18\x02 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12\x9b\x01\n\x1d\x63ompute_config_scaling_groups\x18\x06 \x03(\x0b\x32t.temporal.api.workflowservice.v1.ValidateWorkerDeploymentVersionComputeConfigRequest.ComputeConfigScalingGroupsEntry\x12,\n$remove_compute_config_scaling_groups\x18\x07 \x03(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x1a{\n\x1f\x43omputeConfigScalingGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.temporal.api.compute.v1.ComputeConfigScalingGroupUpdate:\x02\x38\x01"6\n4ValidateWorkerDeploymentVersionComputeConfigResponse"\xa2\x03\n,UpdateWorkerDeploymentVersionMetadataRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x07version\x18\x02 \x01(\tB\x02\x18\x01\x12O\n\x12\x64\x65ployment_version\x18\x05 \x01(\x0b\x32\x33.temporal.api.deployment.v1.WorkerDeploymentVersion\x12x\n\x0eupsert_entries\x18\x03 \x03(\x0b\x32`.temporal.api.workflowservice.v1.UpdateWorkerDeploymentVersionMetadataRequest.UpsertEntriesEntry\x12\x16\n\x0eremove_entries\x18\x04 \x03(\t\x12\x10\n\x08identity\x18\x06 \x01(\t\x1aU\n\x12UpsertEntriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload:\x02\x38\x01"n\n-UpdateWorkerDeploymentVersionMetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b\x32+.temporal.api.deployment.v1.VersionMetadata"\xbd\x01\n!SetWorkerDeploymentManagerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0f\x64\x65ployment_name\x18\x02 \x01(\t\x12\x1a\n\x10manager_identity\x18\x03 \x01(\tH\x00\x12\x0e\n\x04self\x18\x04 \x01(\x08H\x00\x12\x16\n\x0e\x63onflict_token\x18\x05 \x01(\x0c\x12\x10\n\x08identity\x18\x06 \x01(\tB\x16\n\x14new_manager_identity"c\n"SetWorkerDeploymentManagerResponse\x12\x16\n\x0e\x63onflict_token\x18\x01 \x01(\x0c\x12%\n\x19previous_manager_identity\x18\x02 \x01(\tB\x02\x18\x01"E\n\x1bGetCurrentDeploymentRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bseries_name\x18\x02 \x01(\t"k\n\x1cGetCurrentDeploymentResponse\x12K\n\x17\x63urrent_deployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo"q\n GetDeploymentReachabilityRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12:\n\ndeployment\x18\x02 \x01(\x0b\x32&.temporal.api.deployment.v1.Deployment"\xe3\x01\n!GetDeploymentReachabilityResponse\x12\x43\n\x0f\x64\x65ployment_info\x18\x01 \x01(\x0b\x32*.temporal.api.deployment.v1.DeploymentInfo\x12\x43\n\x0creachability\x18\x02 \x01(\x0e\x32-.temporal.api.enums.v1.DeploymentReachability\x12\x34\n\x10last_update_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp"\xb4\x01\n\x19\x43reateWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x35\n\x04spec\x18\x02 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpec\x12\x12\n\nforce_scan\x18\x03 \x01(\x08\x12\x12\n\nrequest_id\x18\x04 \x01(\t\x12\x10\n\x08identity\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t"_\n\x1a\x43reateWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x0e\n\x06job_id\x18\x02 \x01(\t"A\n\x1b\x44\x65scribeWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"Q\n\x1c\x44\x65scribeWorkflowRuleResponse\x12\x31\n\x04rule\x18\x01 \x01(\x0b\x32#.temporal.api.rules.v1.WorkflowRule"?\n\x19\x44\x65leteWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0f\n\x07rule_id\x18\x02 \x01(\t"\x1c\n\x1a\x44\x65leteWorkflowRuleResponse"F\n\x18ListWorkflowRulesRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"h\n\x19ListWorkflowRulesResponse\x12\x32\n\x05rules\x18\x01 \x03(\x0b\x32#.temporal.api.rules.v1.WorkflowRule\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xce\x01\n\x1aTriggerWorkflowRuleRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12<\n\texecution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x0c\n\x02id\x18\x04 \x01(\tH\x00\x12\x37\n\x04spec\x18\x05 \x01(\x0b\x32\'.temporal.api.rules.v1.WorkflowRuleSpecH\x00\x12\x10\n\x08identity\x18\x03 \x01(\tB\x06\n\x04rule".\n\x1bTriggerWorkflowRuleResponse\x12\x0f\n\x07\x61pplied\x18\x01 \x01(\x08"\x9b\x01\n\x1cRecordWorkerHeartbeatRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x41\n\x10worker_heartbeat\x18\x03 \x03(\x0b\x32\'.temporal.api.worker.v1.WorkerHeartbeat\x12\x13\n\x0bresource_id\x18\x04 \x01(\t"\x1f\n\x1dRecordWorkerHeartbeatResponse"\x82\x01\n\x12ListWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x05 \x01(\x08"\xa5\x01\n\x13ListWorkersResponse\x12<\n\x0cworkers_info\x18\x01 \x03(\x0b\x32".temporal.api.worker.v1.WorkerInfoB\x02\x18\x01\x12\x37\n\x07workers\x18\x03 \x03(\x0b\x32&.temporal.api.worker.v1.WorkerListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\xd5\x05\n\x1cUpdateTaskQueueConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntask_queue\x18\x03 \x01(\t\x12=\n\x0ftask_queue_type\x18\x04 \x01(\x0e\x32$.temporal.api.enums.v1.TaskQueueType\x12n\n\x17update_queue_rate_limit\x18\x05 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12}\n&update_fairness_key_rate_limit_default\x18\x06 \x01(\x0b\x32M.temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.RateLimitUpdate\x12\x84\x01\n\x1dset_fairness_weight_overrides\x18\x07 \x03(\x0b\x32].temporal.api.workflowservice.v1.UpdateTaskQueueConfigRequest.SetFairnessWeightOverridesEntry\x12\'\n\x1funset_fairness_weight_overrides\x18\x08 \x03(\t\x1a[\n\x0fRateLimitUpdate\x12\x38\n\nrate_limit\x18\x01 \x01(\x0b\x32$.temporal.api.taskqueue.v1.RateLimit\x12\x0e\n\x06reason\x18\x02 \x01(\t\x1a\x41\n\x1fSetFairnessWeightOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x02:\x02\x38\x01"[\n\x1dUpdateTaskQueueConfigResponse\x12:\n\x06\x63onfig\x18\x01 \x01(\x0b\x32*.temporal.api.taskqueue.v1.TaskQueueConfig"\x9e\x01\n\x18\x46\x65tchWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"U\n\x19\x46\x65tchWorkerConfigResponse\x12\x38\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig"\x8a\x02\n\x19UpdateWorkerConfigRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x38\n\rworker_config\x18\x04 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfig\x12/\n\x0bupdate_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x38\n\x08selector\x18\x06 \x01(\x0b\x32&.temporal.api.common.v1.WorkerSelector\x12\x13\n\x0bresource_id\x18\x07 \x01(\t"d\n\x1aUpdateWorkerConfigResponse\x12:\n\rworker_config\x18\x01 \x01(\x0b\x32!.temporal.api.sdk.v1.WorkerConfigH\x00\x42\n\n\x08response"G\n\x15\x44\x65scribeWorkerRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x1b\n\x13worker_instance_key\x18\x02 \x01(\t"Q\n\x16\x44\x65scribeWorkerResponse\x12\x37\n\x0bworker_info\x18\x01 \x01(\x0b\x32".temporal.api.worker.v1.WorkerInfo"W\n\x13\x43ountWorkersRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t\x12\x1e\n\x16include_system_workers\x18\x03 \x01(\x08"%\n\x14\x43ountWorkersResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03"\x8d\x01\n\x1dPauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t" \n\x1ePauseWorkflowExecutionResponse"\x8f\x01\n\x1fUnpauseWorkflowExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0bworkflow_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x0e\n\x06reason\x18\x05 \x01(\t\x12\x12\n\nrequest_id\x18\x06 \x01(\t""\n UnpauseWorkflowExecutionResponse"\xa1\n\n\x1dStartActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x04 \x01(\t\x12;\n\ractivity_type\x18\x05 \x01(\x0b\x32$.temporal.api.common.v1.ActivityType\x12\x38\n\ntask_queue\x18\x06 \x01(\x0b\x32$.temporal.api.taskqueue.v1.TaskQueue\x12<\n\x19schedule_to_close_timeout\x18\x07 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x34\n\x11heartbeat_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x0cretry_policy\x18\x0b \x01(\x0b\x32#.temporal.api.common.v1.RetryPolicy\x12/\n\x05input\x18\x0c \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x45\n\x0fid_reuse_policy\x18\r \x01(\x0e\x32,.temporal.api.enums.v1.ActivityIdReusePolicy\x12K\n\x12id_conflict_policy\x18\x0e \x01(\x0e\x32/.temporal.api.enums.v1.ActivityIdConflictPolicy\x12\x43\n\x11search_attributes\x18\x0f \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12.\n\x06header\x18\x10 \x01(\x0b\x32\x1e.temporal.api.common.v1.Header\x12\x38\n\ruser_metadata\x18\x11 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12\x32\n\x08priority\x18\x12 \x01(\x0b\x32 .temporal.api.common.v1.Priority\x12>\n\x14\x63ompletion_callbacks\x18\x13 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x14 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x12\x46\n\x13on_conflict_options\x18\x15 \x01(\x0b\x32).temporal.api.common.v1.OnConflictOptions\x12.\n\x0bstart_delay\x18\x16 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x65\n&propagated_nexus_serialization_context\x18\x17 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x1f\n\x17request_eager_execution\x18\x18 \x01(\x08"\xca\x01\n\x1eStartActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08\x12*\n\x04link\x18\x03 \x01(\x0b\x32\x1c.temporal.api.common.v1.Link\x12[\n\x13\x65\x61ger_activity_task\x18\x04 \x01(\x0b\x32>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse"\xe4\x01\n DescribeActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12!\n\x19include_heartbeat_details\x18\x07 \x01(\x08\x12\x1c\n\x14include_last_failure\x18\x08 \x01(\x08"\xbc\x02\n!DescribeActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12=\n\x04info\x18\x02 \x01(\x0b\x32/.temporal.api.activity.v1.ActivityExecutionInfo\x12/\n\x05input\x18\x03 \x01(\x0b\x32 .temporal.api.common.v1.Payloads\x12\x43\n\x07outcome\x18\x04 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x17\n\x0flong_poll_token\x18\x05 \x01(\x0c\x12\x39\n\tcallbacks\x18\x06 \x03(\x0b\x32&.temporal.api.activity.v1.CallbackInfo"V\n\x1cPollActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\xdb\x01\n\x1dPollActivityExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x43\n\x07outcome\x18\x02 \x01(\x0b\x32\x32.temporal.api.activity.v1.ActivityExecutionOutcome\x12\x65\n&propagated_nexus_serialization_context\x18\x03 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext"m\n\x1dListActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x82\x01\n\x1eListActivityExecutionsResponse\x12G\n\nexecutions\x18\x01 \x03(\x0b\x32\x33.temporal.api.activity.v1.ActivityExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"\x8e\x08\n#StartNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\nrequest_id\x18\x03 \x01(\t\x12\x14\n\x0coperation_id\x18\x04 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x05 \x01(\t\x12\x0f\n\x07service\x18\x06 \x01(\t\x12\x11\n\toperation\x18\x07 \x01(\t\x12<\n\x19schedule_to_close_timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x19schedule_to_start_timeout\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x39\n\x16start_to_close_timeout\x18\n \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x05input\x18\x0b \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12K\n\x0fid_reuse_policy\x18\x0c \x01(\x0e\x32\x32.temporal.api.enums.v1.NexusOperationIdReusePolicy\x12Q\n\x12id_conflict_policy\x18\r \x01(\x0e\x32\x35.temporal.api.enums.v1.NexusOperationIdConflictPolicy\x12N\n\x13on_conflict_options\x18\x11 \x01(\x0b\x32\x31.temporal.api.nexusoperation.v1.OnConflictOptions\x12\x43\n\x11search_attributes\x18\x0e \x01(\x0b\x32(.temporal.api.common.v1.SearchAttributes\x12k\n\x0cnexus_header\x18\x0f \x03(\x0b\x32U.temporal.api.workflowservice.v1.StartNexusOperationExecutionRequest.NexusHeaderEntry\x12\x38\n\ruser_metadata\x18\x10 \x01(\x0b\x32!.temporal.api.sdk.v1.UserMetadata\x12>\n\x14\x63ompletion_callbacks\x18\x12 \x03(\x0b\x32 .temporal.api.common.v1.Callback\x12+\n\x05links\x18\x13 \x03(\x0b\x32\x1c.temporal.api.common.v1.Link\x1a\x32\n\x10NexusHeaderEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"G\n$StartNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x0f\n\x07started\x18\x02 \x01(\x08"\xaa\x01\n&DescribeNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x15\n\rinclude_input\x18\x04 \x01(\x08\x12\x17\n\x0finclude_outcome\x18\x05 \x01(\x08\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c"\x83\x03\n\'DescribeNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12@\n\x04info\x18\x02 \x01(\x0b\x32\x32.temporal.api.nexus.v1.NexusOperationExecutionInfo\x12.\n\x05input\x18\x03 \x01(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x12\x17\n\x0flong_poll_token\x18\x06 \x01(\x0c\x12J\n\x14\x63ompletion_callbacks\x18\x07 \x03(\x0b\x32,.temporal.api.nexusoperation.v1.CallbackInfoB\t\n\x07outcome"\xa1\x01\n"PollNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x42\n\nwait_stage\x18\x04 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage"\xec\x02\n#PollNexusOperationExecutionResponse\x12\x0e\n\x06run_id\x18\x01 \x01(\t\x12\x42\n\nwait_stage\x18\x02 \x01(\x0e\x32..temporal.api.enums.v1.NexusOperationWaitStage\x12\x17\n\x0foperation_token\x18\x03 \x01(\t\x12\x65\n&propagated_nexus_serialization_context\x18\x06 \x01(\x0b\x32\x35.temporal.api.nexus.v1.PropagatedSerializationContext\x12\x31\n\x06result\x18\x04 \x01(\x0b\x32\x1f.temporal.api.common.v1.PayloadH\x00\x12\x33\n\x07\x66\x61ilure\x18\x05 \x01(\x0b\x32 .temporal.api.failure.v1.FailureH\x00\x42\t\n\x07outcome"s\n#ListNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\x0c\x12\r\n\x05query\x18\x04 \x01(\t"\x8b\x01\n$ListNexusOperationExecutionsResponse\x12J\n\noperations\x18\x01 \x03(\x0b\x32\x36.temporal.api.nexus.v1.NexusOperationExecutionListInfo\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\x0c"B\n\x1e\x43ountActivityExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xed\x01\n\x1f\x43ountActivityExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x61\n\x06groups\x18\x02 \x03(\x0b\x32Q.temporal.api.workflowservice.v1.CountActivityExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"H\n$CountNexusOperationExecutionsRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\r\n\x05query\x18\x02 \x01(\t"\xf9\x01\n%CountNexusOperationExecutionsResponse\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12g\n\x06groups\x18\x02 \x03(\x0b\x32W.temporal.api.workflowservice.v1.CountNexusOperationExecutionsResponse.AggregationGroup\x1aX\n\x10\x41ggregationGroup\x12\x35\n\x0cgroup_values\x18\x01 \x03(\x0b\x32\x1f.temporal.api.common.v1.Payload\x12\r\n\x05\x63ount\x18\x02 \x01(\x03"\x95\x01\n%RequestCancelActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"(\n&RequestCancelActivityExecutionResponse"\x91\x01\n!TerminateActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"$\n"TerminateActivityExecutionResponse"X\n\x1e\x44\x65leteActivityExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tivity_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"!\n\x1f\x44\x65leteActivityExecutionResponse"\x9c\x01\n+RequestCancelNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t".\n,RequestCancelNexusOperationExecutionResponse"\x98\x01\n\'TerminateNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t\x12\x10\n\x08identity\x18\x04 \x01(\t\x12\x12\n\nrequest_id\x18\x05 \x01(\t\x12\x0e\n\x06reason\x18\x06 \x01(\t"*\n(TerminateNexusOperationExecutionResponse"_\n$DeleteNexusOperationExecutionRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x0e\n\x06run_id\x18\x03 \x01(\t"\'\n%DeleteNexusOperationExecutionResponse"\x9d\x01\n(PollWorkflowExecutionTimeSkippingRequest\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x45\n\x12workflow_execution\x18\x02 \x01(\x0b\x32).temporal.api.common.v1.WorkflowExecution\x12\x17\n\x0f\x66\x61st_forward_id\x18\x03 \x01(\t"\xe8\x01\n)PollWorkflowExecutionTimeSkippingResponse\x12T\n\x1b\x66\x61st_forward_polling_result\x18\x01 \x01(\x0e\x32/.temporal.api.enums.v1.FastForwardPollingResult\x12\x15\n\rfailed_reason\x18\x02 \x01(\t\x12N\n\x11\x66\x61st_forward_info\x18\x03 \x01(\x0b\x32\x33.temporal.api.common.v1.TimeSkippingFastForwardInfoB\xbe\x01\n"io.temporal.api.workflowservice.v1B\x14RequestResponseProtoP\x01Z5go.temporal.io/api/workflowservice/v1;workflowservice\xaa\x02!Temporalio.Api.WorkflowService.V1\xea\x02$Temporalio::Api::WorkflowService::V1b\x06proto3' ) _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) @@ -412,543 +412,543 @@ _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_start = 6869 _GETWORKFLOWEXECUTIONHISTORYREVERSERESPONSE._serialized_end = 6989 _POLLWORKFLOWTASKQUEUEREQUEST._serialized_start = 6992 - _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 7432 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 7435 - _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 8522 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 8438 - _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 8522 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 8525 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 9863 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 9697 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 9792 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 9794 - _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 9863 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 9866 - _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 10111 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 10114 - _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 10639 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 10641 - _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 10676 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 10679 - _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 11165 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 11168 - _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 12452 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 12455 - _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 12620 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 12622 - _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 12734 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 12737 - _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 12944 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 12946 - _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 13062 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 13065 - _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 13447 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 13449 - _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 13487 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 13490 - _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 13697 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 13699 - _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 13741 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 13744 - _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 14253 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 14255 - _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 14342 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 14345 - _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 14679 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 14681 - _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 14772 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 14775 - _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 15157 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 15159 - _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 15196 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 15199 - _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 15487 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 15489 - _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 15530 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 15533 - _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 15793 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 15795 - _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 15835 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 15838 - _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 16188 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 16190 - _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 16267 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 16270 - _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 17609 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 17612 - _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 17770 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 17773 - _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 18222 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 18224 - _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 18272 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 18275 - _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 18562 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18564 - _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18600 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 18602 - _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 18724 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18726 - _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18759 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 18762 - _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 19091 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19094 - _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19224 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 19227 - _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 19621 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19624 - _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19756 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 19758 - _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 19867 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19869 - _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19995 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 19997 - _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 20114 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20117 - _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20251 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 20253 - _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 20362 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20364 - _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20490 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 20492 - _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 20558 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20561 - _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20798 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20710 - _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20798 - _GETSEARCHATTRIBUTESREQUEST._serialized_start = 20800 - _GETSEARCHATTRIBUTESREQUEST._serialized_end = 20828 - _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 20831 - _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 21032 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 20948 - _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 21032 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 21035 - _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 21396 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 21398 - _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 21433 - _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 21435 - _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 21545 - _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 21547 - _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 21577 - _SHUTDOWNWORKERREQUEST._serialized_start = 21580 - _SHUTDOWNWORKERREQUEST._serialized_end = 21863 - _SHUTDOWNWORKERRESPONSE._serialized_start = 21865 - _SHUTDOWNWORKERRESPONSE._serialized_end = 21889 - _QUERYWORKFLOWREQUEST._serialized_start = 21892 - _QUERYWORKFLOWREQUEST._serialized_end = 22125 - _QUERYWORKFLOWRESPONSE._serialized_start = 22128 - _QUERYWORKFLOWRESPONSE._serialized_end = 22313 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 22315 - _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 22430 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 22433 - _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 23098 - _DESCRIBETASKQUEUEREQUEST._serialized_start = 23101 - _DESCRIBETASKQUEUEREQUEST._serialized_end = 23629 - _DESCRIBETASKQUEUERESPONSE._serialized_start = 23632 - _DESCRIBETASKQUEUERESPONSE._serialized_end = 24636 - _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_start = 24316 - _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_end = 24416 - _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_start = 24418 - _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_end = 24534 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 24536 - _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 24636 - _GETCLUSTERINFOREQUEST._serialized_start = 24638 - _GETCLUSTERINFOREQUEST._serialized_end = 24661 - _GETCLUSTERINFORESPONSE._serialized_start = 24664 - _GETCLUSTERINFORESPONSE._serialized_end = 25129 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 25074 - _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 25129 - _GETSYSTEMINFOREQUEST._serialized_start = 25131 - _GETSYSTEMINFOREQUEST._serialized_end = 25153 - _GETSYSTEMINFORESPONSE._serialized_start = 25156 - _GETSYSTEMINFORESPONSE._serialized_end = 25733 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 25297 - _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 25733 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 25735 - _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 25844 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 25847 - _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 26070 - _CREATESCHEDULEREQUEST._serialized_start = 26073 - _CREATESCHEDULEREQUEST._serialized_end = 26405 - _CREATESCHEDULERESPONSE._serialized_start = 26407 - _CREATESCHEDULERESPONSE._serialized_end = 26455 - _DESCRIBESCHEDULEREQUEST._serialized_start = 26457 - _DESCRIBESCHEDULEREQUEST._serialized_end = 26522 - _DESCRIBESCHEDULERESPONSE._serialized_start = 26525 - _DESCRIBESCHEDULERESPONSE._serialized_end = 26796 - _UPDATESCHEDULEREQUEST._serialized_start = 26799 - _UPDATESCHEDULEREQUEST._serialized_end = 27091 - _UPDATESCHEDULERESPONSE._serialized_start = 27093 - _UPDATESCHEDULERESPONSE._serialized_end = 27117 - _PATCHSCHEDULEREQUEST._serialized_start = 27120 - _PATCHSCHEDULEREQUEST._serialized_end = 27276 - _PATCHSCHEDULERESPONSE._serialized_start = 27278 - _PATCHSCHEDULERESPONSE._serialized_end = 27301 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 27304 - _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 27472 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 27474 - _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 27557 - _DELETESCHEDULEREQUEST._serialized_start = 27559 - _DELETESCHEDULEREQUEST._serialized_end = 27640 - _DELETESCHEDULERESPONSE._serialized_start = 27642 - _DELETESCHEDULERESPONSE._serialized_end = 27666 - _LISTSCHEDULESREQUEST._serialized_start = 27668 - _LISTSCHEDULESREQUEST._serialized_end = 27776 - _LISTSCHEDULESRESPONSE._serialized_start = 27778 - _LISTSCHEDULESRESPONSE._serialized_end = 27890 - _COUNTSCHEDULESREQUEST._serialized_start = 27892 - _COUNTSCHEDULESREQUEST._serialized_end = 27949 - _COUNTSCHEDULESRESPONSE._serialized_start = 27952 - _COUNTSCHEDULESRESPONSE._serialized_end = 28171 - _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_start = 20710 - _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_end = 20798 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 28174 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28820 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 28621 + _POLLWORKFLOWTASKQUEUEREQUEST._serialized_end = 7501 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_start = 7504 + _POLLWORKFLOWTASKQUEUERESPONSE._serialized_end = 8591 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_start = 8507 + _POLLWORKFLOWTASKQUEUERESPONSE_QUERIESENTRY._serialized_end = 8591 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_start = 8594 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST._serialized_end = 9932 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_start = 9766 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_QUERYRESULTSENTRY._serialized_end = 9861 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_start = 9863 + _RESPONDWORKFLOWTASKCOMPLETEDREQUEST_CAPABILITIES._serialized_end = 9932 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_start = 9935 + _RESPONDWORKFLOWTASKCOMPLETEDRESPONSE._serialized_end = 10180 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_start = 10183 + _RESPONDWORKFLOWTASKFAILEDREQUEST._serialized_end = 10708 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_start = 10710 + _RESPONDWORKFLOWTASKFAILEDRESPONSE._serialized_end = 10745 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_start = 10748 + _POLLACTIVITYTASKQUEUEREQUEST._serialized_end = 11303 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_start = 11306 + _POLLACTIVITYTASKQUEUERESPONSE._serialized_end = 12590 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_start = 12593 + _RECORDACTIVITYTASKHEARTBEATREQUEST._serialized_end = 12758 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_start = 12760 + _RECORDACTIVITYTASKHEARTBEATRESPONSE._serialized_end = 12872 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_start = 12875 + _RECORDACTIVITYTASKHEARTBEATBYIDREQUEST._serialized_end = 13082 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_start = 13084 + _RECORDACTIVITYTASKHEARTBEATBYIDRESPONSE._serialized_end = 13200 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_start = 13203 + _RESPONDACTIVITYTASKCOMPLETEDREQUEST._serialized_end = 13585 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_start = 13587 + _RESPONDACTIVITYTASKCOMPLETEDRESPONSE._serialized_end = 13625 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_start = 13628 + _RESPONDACTIVITYTASKCOMPLETEDBYIDREQUEST._serialized_end = 13835 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_start = 13837 + _RESPONDACTIVITYTASKCOMPLETEDBYIDRESPONSE._serialized_end = 13879 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_start = 13882 + _RESPONDACTIVITYTASKFAILEDREQUEST._serialized_end = 14391 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_start = 14393 + _RESPONDACTIVITYTASKFAILEDRESPONSE._serialized_end = 14480 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_start = 14483 + _RESPONDACTIVITYTASKFAILEDBYIDREQUEST._serialized_end = 14817 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_start = 14819 + _RESPONDACTIVITYTASKFAILEDBYIDRESPONSE._serialized_end = 14910 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_start = 14913 + _RESPONDACTIVITYTASKCANCELEDREQUEST._serialized_end = 15295 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_start = 15297 + _RESPONDACTIVITYTASKCANCELEDRESPONSE._serialized_end = 15334 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_start = 15337 + _RESPONDACTIVITYTASKCANCELEDBYIDREQUEST._serialized_end = 15625 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_start = 15627 + _RESPONDACTIVITYTASKCANCELEDBYIDRESPONSE._serialized_end = 15668 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_start = 15671 + _REQUESTCANCELWORKFLOWEXECUTIONREQUEST._serialized_end = 15931 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_start = 15933 + _REQUESTCANCELWORKFLOWEXECUTIONRESPONSE._serialized_end = 15973 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_start = 15976 + _SIGNALWORKFLOWEXECUTIONREQUEST._serialized_end = 16326 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_start = 16328 + _SIGNALWORKFLOWEXECUTIONRESPONSE._serialized_end = 16405 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_start = 16408 + _SIGNALWITHSTARTWORKFLOWEXECUTIONREQUEST._serialized_end = 17747 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_start = 17750 + _SIGNALWITHSTARTWORKFLOWEXECUTIONRESPONSE._serialized_end = 17908 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_start = 17911 + _RESETWORKFLOWEXECUTIONREQUEST._serialized_end = 18360 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_start = 18362 + _RESETWORKFLOWEXECUTIONRESPONSE._serialized_end = 18410 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_start = 18413 + _TERMINATEWORKFLOWEXECUTIONREQUEST._serialized_end = 18700 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18702 + _TERMINATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18738 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_start = 18740 + _DELETEWORKFLOWEXECUTIONREQUEST._serialized_end = 18862 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_start = 18864 + _DELETEWORKFLOWEXECUTIONRESPONSE._serialized_end = 18897 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_start = 18900 + _LISTOPENWORKFLOWEXECUTIONSREQUEST._serialized_end = 19229 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19232 + _LISTOPENWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19362 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 19365 + _LISTCLOSEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 19759 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 19762 + _LISTCLOSEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 19894 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_start = 19896 + _LISTWORKFLOWEXECUTIONSREQUEST._serialized_end = 20005 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20007 + _LISTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20133 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_start = 20135 + _LISTARCHIVEDWORKFLOWEXECUTIONSREQUEST._serialized_end = 20252 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20255 + _LISTARCHIVEDWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20389 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_start = 20391 + _SCANWORKFLOWEXECUTIONSREQUEST._serialized_end = 20500 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20502 + _SCANWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20628 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_start = 20630 + _COUNTWORKFLOWEXECUTIONSREQUEST._serialized_end = 20696 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_start = 20699 + _COUNTWORKFLOWEXECUTIONSRESPONSE._serialized_end = 20936 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTWORKFLOWEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _GETSEARCHATTRIBUTESREQUEST._serialized_start = 20938 + _GETSEARCHATTRIBUTESREQUEST._serialized_end = 20966 + _GETSEARCHATTRIBUTESRESPONSE._serialized_start = 20969 + _GETSEARCHATTRIBUTESRESPONSE._serialized_end = 21170 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_start = 21086 + _GETSEARCHATTRIBUTESRESPONSE_KEYSENTRY._serialized_end = 21170 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_start = 21173 + _RESPONDQUERYTASKCOMPLETEDREQUEST._serialized_end = 21534 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_start = 21536 + _RESPONDQUERYTASKCOMPLETEDRESPONSE._serialized_end = 21571 + _RESETSTICKYTASKQUEUEREQUEST._serialized_start = 21573 + _RESETSTICKYTASKQUEUEREQUEST._serialized_end = 21683 + _RESETSTICKYTASKQUEUERESPONSE._serialized_start = 21685 + _RESETSTICKYTASKQUEUERESPONSE._serialized_end = 21715 + _SHUTDOWNWORKERREQUEST._serialized_start = 21718 + _SHUTDOWNWORKERREQUEST._serialized_end = 22001 + _SHUTDOWNWORKERRESPONSE._serialized_start = 22003 + _SHUTDOWNWORKERRESPONSE._serialized_end = 22027 + _QUERYWORKFLOWREQUEST._serialized_start = 22030 + _QUERYWORKFLOWREQUEST._serialized_end = 22263 + _QUERYWORKFLOWRESPONSE._serialized_start = 22266 + _QUERYWORKFLOWRESPONSE._serialized_end = 22451 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_start = 22453 + _DESCRIBEWORKFLOWEXECUTIONREQUEST._serialized_end = 22568 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_start = 22571 + _DESCRIBEWORKFLOWEXECUTIONRESPONSE._serialized_end = 23236 + _DESCRIBETASKQUEUEREQUEST._serialized_start = 23239 + _DESCRIBETASKQUEUEREQUEST._serialized_end = 23767 + _DESCRIBETASKQUEUERESPONSE._serialized_start = 23770 + _DESCRIBETASKQUEUERESPONSE._serialized_end = 24774 + _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_start = 24454 + _DESCRIBETASKQUEUERESPONSE_STATSBYPRIORITYKEYENTRY._serialized_end = 24554 + _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_start = 24556 + _DESCRIBETASKQUEUERESPONSE_EFFECTIVERATELIMIT._serialized_end = 24672 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_start = 24674 + _DESCRIBETASKQUEUERESPONSE_VERSIONSINFOENTRY._serialized_end = 24774 + _GETCLUSTERINFOREQUEST._serialized_start = 24776 + _GETCLUSTERINFOREQUEST._serialized_end = 24799 + _GETCLUSTERINFORESPONSE._serialized_start = 24802 + _GETCLUSTERINFORESPONSE._serialized_end = 25267 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_start = 25212 + _GETCLUSTERINFORESPONSE_SUPPORTEDCLIENTSENTRY._serialized_end = 25267 + _GETSYSTEMINFOREQUEST._serialized_start = 25269 + _GETSYSTEMINFOREQUEST._serialized_end = 25291 + _GETSYSTEMINFORESPONSE._serialized_start = 25294 + _GETSYSTEMINFORESPONSE._serialized_end = 25871 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_start = 25435 + _GETSYSTEMINFORESPONSE_CAPABILITIES._serialized_end = 25871 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_start = 25873 + _LISTTASKQUEUEPARTITIONSREQUEST._serialized_end = 25982 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_start = 25985 + _LISTTASKQUEUEPARTITIONSRESPONSE._serialized_end = 26208 + _CREATESCHEDULEREQUEST._serialized_start = 26211 + _CREATESCHEDULEREQUEST._serialized_end = 26543 + _CREATESCHEDULERESPONSE._serialized_start = 26545 + _CREATESCHEDULERESPONSE._serialized_end = 26593 + _DESCRIBESCHEDULEREQUEST._serialized_start = 26595 + _DESCRIBESCHEDULEREQUEST._serialized_end = 26660 + _DESCRIBESCHEDULERESPONSE._serialized_start = 26663 + _DESCRIBESCHEDULERESPONSE._serialized_end = 26934 + _UPDATESCHEDULEREQUEST._serialized_start = 26937 + _UPDATESCHEDULEREQUEST._serialized_end = 27229 + _UPDATESCHEDULERESPONSE._serialized_start = 27231 + _UPDATESCHEDULERESPONSE._serialized_end = 27255 + _PATCHSCHEDULEREQUEST._serialized_start = 27258 + _PATCHSCHEDULEREQUEST._serialized_end = 27414 + _PATCHSCHEDULERESPONSE._serialized_start = 27416 + _PATCHSCHEDULERESPONSE._serialized_end = 27439 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_start = 27442 + _LISTSCHEDULEMATCHINGTIMESREQUEST._serialized_end = 27610 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_start = 27612 + _LISTSCHEDULEMATCHINGTIMESRESPONSE._serialized_end = 27695 + _DELETESCHEDULEREQUEST._serialized_start = 27697 + _DELETESCHEDULEREQUEST._serialized_end = 27778 + _DELETESCHEDULERESPONSE._serialized_start = 27780 + _DELETESCHEDULERESPONSE._serialized_end = 27804 + _LISTSCHEDULESREQUEST._serialized_start = 27806 + _LISTSCHEDULESREQUEST._serialized_end = 27914 + _LISTSCHEDULESRESPONSE._serialized_start = 27916 + _LISTSCHEDULESRESPONSE._serialized_end = 28028 + _COUNTSCHEDULESREQUEST._serialized_start = 28030 + _COUNTSCHEDULESREQUEST._serialized_end = 28087 + _COUNTSCHEDULESRESPONSE._serialized_start = 28090 + _COUNTSCHEDULESRESPONSE._serialized_end = 28309 + _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTSCHEDULESRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 28312 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28958 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_start = 28759 _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_ADDNEWCOMPATIBLEVERSION._serialized_end = ( - 28732 + 28870 ) - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 28734 - _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 28807 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28822 - _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 28886 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 28888 - _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 28983 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28985 - _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 29101 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 29104 - _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 30821 - _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 30156 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_start = 28872 + _UPDATEWORKERBUILDIDCOMPATIBILITYREQUEST_MERGESETS._serialized_end = 28945 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 28960 + _UPDATEWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 29024 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_start = 29026 + _GETWORKERBUILDIDCOMPATIBILITYREQUEST._serialized_end = 29121 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_start = 29123 + _GETWORKERBUILDIDCOMPATIBILITYRESPONSE._serialized_end = 29239 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_start = 29242 + _UPDATEWORKERVERSIONINGRULESREQUEST._serialized_end = 30959 + _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_start = 30294 _UPDATEWORKERVERSIONINGRULESREQUEST_INSERTBUILDIDASSIGNMENTRULE._serialized_end = ( - 30269 + 30407 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 30272 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_start = 30410 _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACEBUILDIDASSIGNMENTRULE._serialized_end = ( - 30401 + 30539 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 30403 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_start = 30541 _UPDATEWORKERVERSIONINGRULESREQUEST_DELETEBUILDIDASSIGNMENTRULE._serialized_end = ( - 30467 + 30605 ) - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30469 - _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30575 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30577 - _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30687 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30689 - _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30751 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 30753 - _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 30808 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 30824 - _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 31076 - _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 31078 - _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 31150 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 31153 - _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 31402 - _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 31405 - _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 31561 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 31563 - _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 31677 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 31680 - _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 31941 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 31944 - _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 32306 - _STARTBATCHOPERATIONREQUEST._serialized_start = 32309 - _STARTBATCHOPERATIONREQUEST._serialized_end = 33675 - _STARTBATCHOPERATIONRESPONSE._serialized_start = 33677 - _STARTBATCHOPERATIONRESPONSE._serialized_end = 33706 - _STOPBATCHOPERATIONREQUEST._serialized_start = 33708 - _STOPBATCHOPERATIONREQUEST._serialized_end = 33804 - _STOPBATCHOPERATIONRESPONSE._serialized_start = 33806 - _STOPBATCHOPERATIONRESPONSE._serialized_end = 33834 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 33836 - _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 33902 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 33905 - _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 34377 - _LISTBATCHOPERATIONSREQUEST._serialized_start = 34379 - _LISTBATCHOPERATIONSREQUEST._serialized_end = 34470 - _LISTBATCHOPERATIONSRESPONSE._serialized_start = 34472 - _LISTBATCHOPERATIONSRESPONSE._serialized_end = 34593 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 34596 - _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 34781 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 34784 - _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 35106 - _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 35109 - _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 35525 - _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 35528 - _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 35882 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 35885 - _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 36052 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 36054 - _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 36089 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 36092 - _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 36312 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 36314 - _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 36346 - _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 36349 - _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 36721 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 36515 - _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 36721 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 36724 - _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 37056 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 36850 - _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 37056 - _UPDATEACTIVITYOPTIONSREQUEST._serialized_start = 37059 - _UPDATEACTIVITYOPTIONSREQUEST._serialized_end = 37395 - _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_start = 37398 - _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_end = 37717 - _UPDATEACTIVITYOPTIONSRESPONSE._serialized_start = 37719 - _UPDATEACTIVITYOPTIONSRESPONSE._serialized_end = 37819 - _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_start = 37821 - _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_end = 37930 - _PAUSEACTIVITYREQUEST._serialized_start = 37933 - _PAUSEACTIVITYREQUEST._serialized_end = 38132 - _PAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38135 - _PAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 38318 - _PAUSEACTIVITYRESPONSE._serialized_start = 38320 - _PAUSEACTIVITYRESPONSE._serialized_end = 38343 - _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 38345 - _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 38377 - _UNPAUSEACTIVITYREQUEST._serialized_start = 38380 - _UNPAUSEACTIVITYREQUEST._serialized_end = 38660 - _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38663 - _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 38936 - _UNPAUSEACTIVITYRESPONSE._serialized_start = 38938 - _UNPAUSEACTIVITYRESPONSE._serialized_end = 38963 - _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 38965 - _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 38999 - _RESETACTIVITYREQUEST._serialized_start = 39002 - _RESETACTIVITYREQUEST._serialized_end = 39309 - _RESETACTIVITYEXECUTIONREQUEST._serialized_start = 39312 - _RESETACTIVITYEXECUTIONREQUEST._serialized_end = 39602 - _RESETACTIVITYRESPONSE._serialized_start = 39604 - _RESETACTIVITYRESPONSE._serialized_end = 39627 - _RESETACTIVITYEXECUTIONRESPONSE._serialized_start = 39629 - _RESETACTIVITYEXECUTIONRESPONSE._serialized_end = 39661 - _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_start = 39664 - _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_end = 39948 - _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_start = 39951 - _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_end = 40128 - _DESCRIBEDEPLOYMENTREQUEST._serialized_start = 40130 - _DESCRIBEDEPLOYMENTREQUEST._serialized_end = 40236 - _DESCRIBEDEPLOYMENTRESPONSE._serialized_start = 40238 - _DESCRIBEDEPLOYMENTRESPONSE._serialized_end = 40335 - _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 40338 - _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 40532 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 40535 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 41187 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_start = 40796 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_end = 41187 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_start = 24316 - _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_end = 24416 - _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_start = 41189 - _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_end = 41266 - _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_start = 41269 - _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_end = 41409 - _LISTDEPLOYMENTSREQUEST._serialized_start = 41411 - _LISTDEPLOYMENTSREQUEST._serialized_end = 41519 - _LISTDEPLOYMENTSRESPONSE._serialized_start = 41521 - _LISTDEPLOYMENTSRESPONSE._serialized_end = 41640 - _SETCURRENTDEPLOYMENTREQUEST._serialized_start = 41643 - _SETCURRENTDEPLOYMENTREQUEST._serialized_end = 41848 - _SETCURRENTDEPLOYMENTRESPONSE._serialized_start = 41851 - _SETCURRENTDEPLOYMENTRESPONSE._serialized_end = 42036 - _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_start = 42039 - _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_end = 42268 - _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_start = 42271 - _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_end = 42462 - _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_start = 42465 - _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_end = 42714 - _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_start = 42717 - _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_end = 42941 - _CREATEWORKERDEPLOYMENTREQUEST._serialized_start = 42943 - _CREATEWORKERDEPLOYMENTREQUEST._serialized_end = 43056 - _CREATEWORKERDEPLOYMENTRESPONSE._serialized_start = 43058 - _CREATEWORKERDEPLOYMENTRESPONSE._serialized_end = 43114 - _LISTWORKERDEPLOYMENTSREQUEST._serialized_start = 43116 - _LISTWORKERDEPLOYMENTSREQUEST._serialized_end = 43209 - _LISTWORKERDEPLOYMENTSRESPONSE._serialized_start = 43212 - _LISTWORKERDEPLOYMENTSRESPONSE._serialized_end = 43883 - _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_start = 43387 - _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_end = 43883 - _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 43886 - _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44126 - _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44128 - _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44167 - _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 44170 - _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44370 - _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44372 - _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44411 - _DELETEWORKERDEPLOYMENTREQUEST._serialized_start = 44413 - _DELETEWORKERDEPLOYMENTREQUEST._serialized_end = 44506 - _DELETEWORKERDEPLOYMENTRESPONSE._serialized_start = 44508 - _DELETEWORKERDEPLOYMENTRESPONSE._serialized_end = 44540 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 44543 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45059 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 44936 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45059 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45061 - _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45113 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 45116 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45616 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 44936 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45059 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45618 - _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45672 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_start = 45675 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_end = 46093 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_start = 46008 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30607 + _UPDATEWORKERVERSIONINGRULESREQUEST_ADDCOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30713 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30715 + _UPDATEWORKERVERSIONINGRULESREQUEST_REPLACECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30825 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_start = 30827 + _UPDATEWORKERVERSIONINGRULESREQUEST_DELETECOMPATIBLEBUILDIDREDIRECTRULE._serialized_end = 30889 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_start = 30891 + _UPDATEWORKERVERSIONINGRULESREQUEST_COMMITBUILDID._serialized_end = 30946 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_start = 30962 + _UPDATEWORKERVERSIONINGRULESRESPONSE._serialized_end = 31214 + _GETWORKERVERSIONINGRULESREQUEST._serialized_start = 31216 + _GETWORKERVERSIONINGRULESREQUEST._serialized_end = 31288 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_start = 31291 + _GETWORKERVERSIONINGRULESRESPONSE._serialized_end = 31540 + _GETWORKERTASKREACHABILITYREQUEST._serialized_start = 31543 + _GETWORKERTASKREACHABILITYREQUEST._serialized_end = 31699 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_start = 31701 + _GETWORKERTASKREACHABILITYRESPONSE._serialized_end = 31815 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_start = 31818 + _UPDATEWORKFLOWEXECUTIONREQUEST._serialized_end = 32079 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_start = 32082 + _UPDATEWORKFLOWEXECUTIONRESPONSE._serialized_end = 32444 + _STARTBATCHOPERATIONREQUEST._serialized_start = 32447 + _STARTBATCHOPERATIONREQUEST._serialized_end = 33813 + _STARTBATCHOPERATIONRESPONSE._serialized_start = 33815 + _STARTBATCHOPERATIONRESPONSE._serialized_end = 33844 + _STOPBATCHOPERATIONREQUEST._serialized_start = 33846 + _STOPBATCHOPERATIONREQUEST._serialized_end = 33942 + _STOPBATCHOPERATIONRESPONSE._serialized_start = 33944 + _STOPBATCHOPERATIONRESPONSE._serialized_end = 33972 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_start = 33974 + _DESCRIBEBATCHOPERATIONREQUEST._serialized_end = 34040 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_start = 34043 + _DESCRIBEBATCHOPERATIONRESPONSE._serialized_end = 34515 + _LISTBATCHOPERATIONSREQUEST._serialized_start = 34517 + _LISTBATCHOPERATIONSREQUEST._serialized_end = 34608 + _LISTBATCHOPERATIONSRESPONSE._serialized_start = 34610 + _LISTBATCHOPERATIONSRESPONSE._serialized_end = 34731 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_start = 34734 + _POLLWORKFLOWEXECUTIONUPDATEREQUEST._serialized_end = 34919 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_start = 34922 + _POLLWORKFLOWEXECUTIONUPDATERESPONSE._serialized_end = 35244 + _POLLNEXUSTASKQUEUEREQUEST._serialized_start = 35247 + _POLLNEXUSTASKQUEUEREQUEST._serialized_end = 35732 + _POLLNEXUSTASKQUEUERESPONSE._serialized_start = 35735 + _POLLNEXUSTASKQUEUERESPONSE._serialized_end = 36089 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_start = 36092 + _RESPONDNEXUSTASKCOMPLETEDREQUEST._serialized_end = 36259 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_start = 36261 + _RESPONDNEXUSTASKCOMPLETEDRESPONSE._serialized_end = 36296 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_start = 36299 + _RESPONDNEXUSTASKFAILEDREQUEST._serialized_end = 36519 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_start = 36521 + _RESPONDNEXUSTASKFAILEDRESPONSE._serialized_end = 36553 + _EXECUTEMULTIOPERATIONREQUEST._serialized_start = 36556 + _EXECUTEMULTIOPERATIONREQUEST._serialized_end = 36928 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_start = 36722 + _EXECUTEMULTIOPERATIONREQUEST_OPERATION._serialized_end = 36928 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_start = 36931 + _EXECUTEMULTIOPERATIONRESPONSE._serialized_end = 37263 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_start = 37057 + _EXECUTEMULTIOPERATIONRESPONSE_RESPONSE._serialized_end = 37263 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_start = 37266 + _UPDATEACTIVITYOPTIONSREQUEST._serialized_end = 37602 + _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_start = 37605 + _UPDATEACTIVITYEXECUTIONOPTIONSREQUEST._serialized_end = 37924 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_start = 37926 + _UPDATEACTIVITYOPTIONSRESPONSE._serialized_end = 38026 + _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_start = 38028 + _UPDATEACTIVITYEXECUTIONOPTIONSRESPONSE._serialized_end = 38137 + _PAUSEACTIVITYREQUEST._serialized_start = 38140 + _PAUSEACTIVITYREQUEST._serialized_end = 38339 + _PAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38342 + _PAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 38525 + _PAUSEACTIVITYRESPONSE._serialized_start = 38527 + _PAUSEACTIVITYRESPONSE._serialized_end = 38550 + _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 38552 + _PAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 38584 + _UNPAUSEACTIVITYREQUEST._serialized_start = 38587 + _UNPAUSEACTIVITYREQUEST._serialized_end = 38867 + _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_start = 38870 + _UNPAUSEACTIVITYEXECUTIONREQUEST._serialized_end = 39143 + _UNPAUSEACTIVITYRESPONSE._serialized_start = 39145 + _UNPAUSEACTIVITYRESPONSE._serialized_end = 39170 + _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_start = 39172 + _UNPAUSEACTIVITYEXECUTIONRESPONSE._serialized_end = 39206 + _RESETACTIVITYREQUEST._serialized_start = 39209 + _RESETACTIVITYREQUEST._serialized_end = 39516 + _RESETACTIVITYEXECUTIONREQUEST._serialized_start = 39519 + _RESETACTIVITYEXECUTIONREQUEST._serialized_end = 39809 + _RESETACTIVITYRESPONSE._serialized_start = 39811 + _RESETACTIVITYRESPONSE._serialized_end = 39834 + _RESETACTIVITYEXECUTIONRESPONSE._serialized_start = 39836 + _RESETACTIVITYEXECUTIONRESPONSE._serialized_end = 39868 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_start = 39871 + _UPDATEWORKFLOWEXECUTIONOPTIONSREQUEST._serialized_end = 40155 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_start = 40158 + _UPDATEWORKFLOWEXECUTIONOPTIONSRESPONSE._serialized_end = 40335 + _DESCRIBEDEPLOYMENTREQUEST._serialized_start = 40337 + _DESCRIBEDEPLOYMENTREQUEST._serialized_end = 40443 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_start = 40445 + _DESCRIBEDEPLOYMENTRESPONSE._serialized_end = 40542 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 40545 + _DESCRIBEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 40739 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 40742 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 41394 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_start = 41003 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE._serialized_end = 41394 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_start = 24454 + _DESCRIBEWORKERDEPLOYMENTVERSIONRESPONSE_VERSIONTASKQUEUE_STATSBYPRIORITYKEYENTRY._serialized_end = 24554 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_start = 41396 + _DESCRIBEWORKERDEPLOYMENTREQUEST._serialized_end = 41473 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_start = 41476 + _DESCRIBEWORKERDEPLOYMENTRESPONSE._serialized_end = 41616 + _LISTDEPLOYMENTSREQUEST._serialized_start = 41618 + _LISTDEPLOYMENTSREQUEST._serialized_end = 41726 + _LISTDEPLOYMENTSRESPONSE._serialized_start = 41728 + _LISTDEPLOYMENTSRESPONSE._serialized_end = 41847 + _SETCURRENTDEPLOYMENTREQUEST._serialized_start = 41850 + _SETCURRENTDEPLOYMENTREQUEST._serialized_end = 42055 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_start = 42058 + _SETCURRENTDEPLOYMENTRESPONSE._serialized_end = 42243 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_start = 42246 + _SETWORKERDEPLOYMENTCURRENTVERSIONREQUEST._serialized_end = 42475 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_start = 42478 + _SETWORKERDEPLOYMENTCURRENTVERSIONRESPONSE._serialized_end = 42669 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_start = 42672 + _SETWORKERDEPLOYMENTRAMPINGVERSIONREQUEST._serialized_end = 42921 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_start = 42924 + _SETWORKERDEPLOYMENTRAMPINGVERSIONRESPONSE._serialized_end = 43148 + _CREATEWORKERDEPLOYMENTREQUEST._serialized_start = 43150 + _CREATEWORKERDEPLOYMENTREQUEST._serialized_end = 43263 + _CREATEWORKERDEPLOYMENTRESPONSE._serialized_start = 43265 + _CREATEWORKERDEPLOYMENTRESPONSE._serialized_end = 43321 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_start = 43323 + _LISTWORKERDEPLOYMENTSREQUEST._serialized_end = 43416 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_start = 43419 + _LISTWORKERDEPLOYMENTSRESPONSE._serialized_end = 44090 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_start = 43594 + _LISTWORKERDEPLOYMENTSRESPONSE_WORKERDEPLOYMENTSUMMARY._serialized_end = 44090 + _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 44093 + _CREATEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44333 + _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44335 + _CREATEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44374 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_start = 44377 + _DELETEWORKERDEPLOYMENTVERSIONREQUEST._serialized_end = 44577 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_start = 44579 + _DELETEWORKERDEPLOYMENTVERSIONRESPONSE._serialized_end = 44618 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_start = 44620 + _DELETEWORKERDEPLOYMENTREQUEST._serialized_end = 44713 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_start = 44715 + _DELETEWORKERDEPLOYMENTRESPONSE._serialized_end = 44747 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 44750 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45266 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 45143 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45266 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45268 + _UPDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45320 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_start = 45323 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST._serialized_end = 45823 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_start = 45143 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGREQUEST_COMPUTECONFIGSCALINGGROUPSENTRY._serialized_end = 45266 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_start = 45825 + _VALIDATEWORKERDEPLOYMENTVERSIONCOMPUTECONFIGRESPONSE._serialized_end = 45879 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_start = 45882 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST._serialized_end = 46300 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_start = 46215 _UPDATEWORKERDEPLOYMENTVERSIONMETADATAREQUEST_UPSERTENTRIESENTRY._serialized_end = ( - 46093 + 46300 ) - _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_start = 46095 - _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_end = 46205 - _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_start = 46208 - _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_end = 46397 - _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_start = 46399 - _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_end = 46498 - _GETCURRENTDEPLOYMENTREQUEST._serialized_start = 46500 - _GETCURRENTDEPLOYMENTREQUEST._serialized_end = 46569 - _GETCURRENTDEPLOYMENTRESPONSE._serialized_start = 46571 - _GETCURRENTDEPLOYMENTRESPONSE._serialized_end = 46678 - _GETDEPLOYMENTREACHABILITYREQUEST._serialized_start = 46680 - _GETDEPLOYMENTREACHABILITYREQUEST._serialized_end = 46793 - _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_start = 46796 - _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_end = 47023 - _CREATEWORKFLOWRULEREQUEST._serialized_start = 47026 - _CREATEWORKFLOWRULEREQUEST._serialized_end = 47206 - _CREATEWORKFLOWRULERESPONSE._serialized_start = 47208 - _CREATEWORKFLOWRULERESPONSE._serialized_end = 47303 - _DESCRIBEWORKFLOWRULEREQUEST._serialized_start = 47305 - _DESCRIBEWORKFLOWRULEREQUEST._serialized_end = 47370 - _DESCRIBEWORKFLOWRULERESPONSE._serialized_start = 47372 - _DESCRIBEWORKFLOWRULERESPONSE._serialized_end = 47453 - _DELETEWORKFLOWRULEREQUEST._serialized_start = 47455 - _DELETEWORKFLOWRULEREQUEST._serialized_end = 47518 - _DELETEWORKFLOWRULERESPONSE._serialized_start = 47520 - _DELETEWORKFLOWRULERESPONSE._serialized_end = 47548 - _LISTWORKFLOWRULESREQUEST._serialized_start = 47550 - _LISTWORKFLOWRULESREQUEST._serialized_end = 47620 - _LISTWORKFLOWRULESRESPONSE._serialized_start = 47622 - _LISTWORKFLOWRULESRESPONSE._serialized_end = 47726 - _TRIGGERWORKFLOWRULEREQUEST._serialized_start = 47729 - _TRIGGERWORKFLOWRULEREQUEST._serialized_end = 47935 - _TRIGGERWORKFLOWRULERESPONSE._serialized_start = 47937 - _TRIGGERWORKFLOWRULERESPONSE._serialized_end = 47983 - _RECORDWORKERHEARTBEATREQUEST._serialized_start = 47986 - _RECORDWORKERHEARTBEATREQUEST._serialized_end = 48141 - _RECORDWORKERHEARTBEATRESPONSE._serialized_start = 48143 - _RECORDWORKERHEARTBEATRESPONSE._serialized_end = 48174 - _LISTWORKERSREQUEST._serialized_start = 48177 - _LISTWORKERSREQUEST._serialized_end = 48307 - _LISTWORKERSRESPONSE._serialized_start = 48310 - _LISTWORKERSRESPONSE._serialized_end = 48475 - _UPDATETASKQUEUECONFIGREQUEST._serialized_start = 48478 - _UPDATETASKQUEUECONFIGREQUEST._serialized_end = 49203 - _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_start = 49045 - _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_end = 49136 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_start = 46302 + _UPDATEWORKERDEPLOYMENTVERSIONMETADATARESPONSE._serialized_end = 46412 + _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_start = 46415 + _SETWORKERDEPLOYMENTMANAGERREQUEST._serialized_end = 46604 + _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_start = 46606 + _SETWORKERDEPLOYMENTMANAGERRESPONSE._serialized_end = 46705 + _GETCURRENTDEPLOYMENTREQUEST._serialized_start = 46707 + _GETCURRENTDEPLOYMENTREQUEST._serialized_end = 46776 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_start = 46778 + _GETCURRENTDEPLOYMENTRESPONSE._serialized_end = 46885 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_start = 46887 + _GETDEPLOYMENTREACHABILITYREQUEST._serialized_end = 47000 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_start = 47003 + _GETDEPLOYMENTREACHABILITYRESPONSE._serialized_end = 47230 + _CREATEWORKFLOWRULEREQUEST._serialized_start = 47233 + _CREATEWORKFLOWRULEREQUEST._serialized_end = 47413 + _CREATEWORKFLOWRULERESPONSE._serialized_start = 47415 + _CREATEWORKFLOWRULERESPONSE._serialized_end = 47510 + _DESCRIBEWORKFLOWRULEREQUEST._serialized_start = 47512 + _DESCRIBEWORKFLOWRULEREQUEST._serialized_end = 47577 + _DESCRIBEWORKFLOWRULERESPONSE._serialized_start = 47579 + _DESCRIBEWORKFLOWRULERESPONSE._serialized_end = 47660 + _DELETEWORKFLOWRULEREQUEST._serialized_start = 47662 + _DELETEWORKFLOWRULEREQUEST._serialized_end = 47725 + _DELETEWORKFLOWRULERESPONSE._serialized_start = 47727 + _DELETEWORKFLOWRULERESPONSE._serialized_end = 47755 + _LISTWORKFLOWRULESREQUEST._serialized_start = 47757 + _LISTWORKFLOWRULESREQUEST._serialized_end = 47827 + _LISTWORKFLOWRULESRESPONSE._serialized_start = 47829 + _LISTWORKFLOWRULESRESPONSE._serialized_end = 47933 + _TRIGGERWORKFLOWRULEREQUEST._serialized_start = 47936 + _TRIGGERWORKFLOWRULEREQUEST._serialized_end = 48142 + _TRIGGERWORKFLOWRULERESPONSE._serialized_start = 48144 + _TRIGGERWORKFLOWRULERESPONSE._serialized_end = 48190 + _RECORDWORKERHEARTBEATREQUEST._serialized_start = 48193 + _RECORDWORKERHEARTBEATREQUEST._serialized_end = 48348 + _RECORDWORKERHEARTBEATRESPONSE._serialized_start = 48350 + _RECORDWORKERHEARTBEATRESPONSE._serialized_end = 48381 + _LISTWORKERSREQUEST._serialized_start = 48384 + _LISTWORKERSREQUEST._serialized_end = 48514 + _LISTWORKERSRESPONSE._serialized_start = 48517 + _LISTWORKERSRESPONSE._serialized_end = 48682 + _UPDATETASKQUEUECONFIGREQUEST._serialized_start = 48685 + _UPDATETASKQUEUECONFIGREQUEST._serialized_end = 49410 + _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_start = 49252 + _UPDATETASKQUEUECONFIGREQUEST_RATELIMITUPDATE._serialized_end = 49343 _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY._serialized_start = ( - 49138 + 49345 ) _UPDATETASKQUEUECONFIGREQUEST_SETFAIRNESSWEIGHTOVERRIDESENTRY._serialized_end = ( - 49203 + 49410 ) - _UPDATETASKQUEUECONFIGRESPONSE._serialized_start = 49205 - _UPDATETASKQUEUECONFIGRESPONSE._serialized_end = 49296 - _FETCHWORKERCONFIGREQUEST._serialized_start = 49299 - _FETCHWORKERCONFIGREQUEST._serialized_end = 49457 - _FETCHWORKERCONFIGRESPONSE._serialized_start = 49459 - _FETCHWORKERCONFIGRESPONSE._serialized_end = 49544 - _UPDATEWORKERCONFIGREQUEST._serialized_start = 49547 - _UPDATEWORKERCONFIGREQUEST._serialized_end = 49813 - _UPDATEWORKERCONFIGRESPONSE._serialized_start = 49815 - _UPDATEWORKERCONFIGRESPONSE._serialized_end = 49915 - _DESCRIBEWORKERREQUEST._serialized_start = 49917 - _DESCRIBEWORKERREQUEST._serialized_end = 49988 - _DESCRIBEWORKERRESPONSE._serialized_start = 49990 - _DESCRIBEWORKERRESPONSE._serialized_end = 50071 - _COUNTWORKERSREQUEST._serialized_start = 50073 - _COUNTWORKERSREQUEST._serialized_end = 50160 - _COUNTWORKERSRESPONSE._serialized_start = 50162 - _COUNTWORKERSRESPONSE._serialized_end = 50199 - _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50202 - _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50343 - _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50345 - _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50377 - _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50380 - _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50523 - _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50525 - _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50559 - _STARTACTIVITYEXECUTIONREQUEST._serialized_start = 50562 - _STARTACTIVITYEXECUTIONREQUEST._serialized_end = 51875 - _STARTACTIVITYEXECUTIONRESPONSE._serialized_start = 51878 - _STARTACTIVITYEXECUTIONRESPONSE._serialized_end = 52080 - _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_start = 52083 - _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_end = 52311 - _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_start = 52314 - _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_end = 52630 - _POLLACTIVITYEXECUTIONREQUEST._serialized_start = 52632 - _POLLACTIVITYEXECUTIONREQUEST._serialized_end = 52718 - _POLLACTIVITYEXECUTIONRESPONSE._serialized_start = 52721 - _POLLACTIVITYEXECUTIONRESPONSE._serialized_end = 52940 - _LISTACTIVITYEXECUTIONSREQUEST._serialized_start = 52942 - _LISTACTIVITYEXECUTIONSREQUEST._serialized_end = 53051 - _LISTACTIVITYEXECUTIONSRESPONSE._serialized_start = 53054 - _LISTACTIVITYEXECUTIONSRESPONSE._serialized_end = 53184 - _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 53187 - _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54225 - _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_start = 54175 - _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_end = 54225 - _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54227 - _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 54298 - _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 54301 - _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54471 - _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54474 - _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 54861 - _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 54864 - _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55025 - _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55028 - _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55392 - _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 55394 - _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 55509 - _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 55512 - _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 55651 - _COUNTACTIVITYEXECUTIONSREQUEST._serialized_start = 55653 - _COUNTACTIVITYEXECUTIONSREQUEST._serialized_end = 55719 - _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_start = 55722 - _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_end = 55959 - _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20710 - _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20798 - _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 55961 - _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 56033 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 56036 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 56285 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20710 - _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20798 - _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_start = 56288 - _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_end = 56437 - _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_start = 56439 - _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_end = 56479 - _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_start = 56482 - _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_end = 56627 - _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_start = 56629 - _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_end = 56665 - _DELETEACTIVITYEXECUTIONREQUEST._serialized_start = 56667 - _DELETEACTIVITYEXECUTIONREQUEST._serialized_end = 56755 - _DELETEACTIVITYEXECUTIONRESPONSE._serialized_start = 56757 - _DELETEACTIVITYEXECUTIONRESPONSE._serialized_end = 56790 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 56793 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 56949 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 56951 - _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 56997 - _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57000 - _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57152 - _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57154 - _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57196 - _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57198 - _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57293 - _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57295 - _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57334 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_start = 57337 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_end = 57494 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_start = 57497 - _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_end = 57729 + _UPDATETASKQUEUECONFIGRESPONSE._serialized_start = 49412 + _UPDATETASKQUEUECONFIGRESPONSE._serialized_end = 49503 + _FETCHWORKERCONFIGREQUEST._serialized_start = 49506 + _FETCHWORKERCONFIGREQUEST._serialized_end = 49664 + _FETCHWORKERCONFIGRESPONSE._serialized_start = 49666 + _FETCHWORKERCONFIGRESPONSE._serialized_end = 49751 + _UPDATEWORKERCONFIGREQUEST._serialized_start = 49754 + _UPDATEWORKERCONFIGREQUEST._serialized_end = 50020 + _UPDATEWORKERCONFIGRESPONSE._serialized_start = 50022 + _UPDATEWORKERCONFIGRESPONSE._serialized_end = 50122 + _DESCRIBEWORKERREQUEST._serialized_start = 50124 + _DESCRIBEWORKERREQUEST._serialized_end = 50195 + _DESCRIBEWORKERRESPONSE._serialized_start = 50197 + _DESCRIBEWORKERRESPONSE._serialized_end = 50278 + _COUNTWORKERSREQUEST._serialized_start = 50280 + _COUNTWORKERSREQUEST._serialized_end = 50367 + _COUNTWORKERSRESPONSE._serialized_start = 50369 + _COUNTWORKERSRESPONSE._serialized_end = 50406 + _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50409 + _PAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50550 + _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50552 + _PAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50584 + _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_start = 50587 + _UNPAUSEWORKFLOWEXECUTIONREQUEST._serialized_end = 50730 + _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_start = 50732 + _UNPAUSEWORKFLOWEXECUTIONRESPONSE._serialized_end = 50766 + _STARTACTIVITYEXECUTIONREQUEST._serialized_start = 50769 + _STARTACTIVITYEXECUTIONREQUEST._serialized_end = 52082 + _STARTACTIVITYEXECUTIONRESPONSE._serialized_start = 52085 + _STARTACTIVITYEXECUTIONRESPONSE._serialized_end = 52287 + _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_start = 52290 + _DESCRIBEACTIVITYEXECUTIONREQUEST._serialized_end = 52518 + _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_start = 52521 + _DESCRIBEACTIVITYEXECUTIONRESPONSE._serialized_end = 52837 + _POLLACTIVITYEXECUTIONREQUEST._serialized_start = 52839 + _POLLACTIVITYEXECUTIONREQUEST._serialized_end = 52925 + _POLLACTIVITYEXECUTIONRESPONSE._serialized_start = 52928 + _POLLACTIVITYEXECUTIONRESPONSE._serialized_end = 53147 + _LISTACTIVITYEXECUTIONSREQUEST._serialized_start = 53149 + _LISTACTIVITYEXECUTIONSREQUEST._serialized_end = 53258 + _LISTACTIVITYEXECUTIONSRESPONSE._serialized_start = 53261 + _LISTACTIVITYEXECUTIONSRESPONSE._serialized_end = 53391 + _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 53394 + _STARTNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54432 + _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_start = 54382 + _STARTNEXUSOPERATIONEXECUTIONREQUEST_NEXUSHEADERENTRY._serialized_end = 54432 + _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54434 + _STARTNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 54505 + _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 54508 + _DESCRIBENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 54678 + _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 54681 + _DESCRIBENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55068 + _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 55071 + _POLLNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 55232 + _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 55235 + _POLLNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 55599 + _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 55601 + _LISTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 55716 + _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 55719 + _LISTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 55858 + _COUNTACTIVITYEXECUTIONSREQUEST._serialized_start = 55860 + _COUNTACTIVITYEXECUTIONSREQUEST._serialized_end = 55926 + _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_start = 55929 + _COUNTACTIVITYEXECUTIONSRESPONSE._serialized_end = 56166 + _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTACTIVITYEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_start = 56168 + _COUNTNEXUSOPERATIONEXECUTIONSREQUEST._serialized_end = 56240 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_start = 56243 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE._serialized_end = 56492 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_start = 20848 + _COUNTNEXUSOPERATIONEXECUTIONSRESPONSE_AGGREGATIONGROUP._serialized_end = 20936 + _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_start = 56495 + _REQUESTCANCELACTIVITYEXECUTIONREQUEST._serialized_end = 56644 + _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_start = 56646 + _REQUESTCANCELACTIVITYEXECUTIONRESPONSE._serialized_end = 56686 + _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_start = 56689 + _TERMINATEACTIVITYEXECUTIONREQUEST._serialized_end = 56834 + _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_start = 56836 + _TERMINATEACTIVITYEXECUTIONRESPONSE._serialized_end = 56872 + _DELETEACTIVITYEXECUTIONREQUEST._serialized_start = 56874 + _DELETEACTIVITYEXECUTIONREQUEST._serialized_end = 56962 + _DELETEACTIVITYEXECUTIONRESPONSE._serialized_start = 56964 + _DELETEACTIVITYEXECUTIONRESPONSE._serialized_end = 56997 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57000 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57156 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57158 + _REQUESTCANCELNEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57204 + _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57207 + _TERMINATENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57359 + _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57361 + _TERMINATENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57403 + _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_start = 57405 + _DELETENEXUSOPERATIONEXECUTIONREQUEST._serialized_end = 57500 + _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_start = 57502 + _DELETENEXUSOPERATIONEXECUTIONRESPONSE._serialized_end = 57541 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_start = 57544 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGREQUEST._serialized_end = 57701 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_start = 57704 + _POLLWORKFLOWEXECUTIONTIMESKIPPINGRESPONSE._serialized_end = 57936 # @@protoc_insertion_point(module_scope) diff --git a/temporalio/api/workflowservice/v1/request_response_pb2.pyi b/temporalio/api/workflowservice/v1/request_response_pb2.pyi index 5bef911c56..4dd766505c 100644 --- a/temporalio/api/workflowservice/v1/request_response_pb2.pyi +++ b/temporalio/api/workflowservice/v1/request_response_pb2.pyi @@ -1228,6 +1228,7 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): BINARY_CHECKSUM_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in @@ -1267,6 +1268,14 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state, used to spread poller scaling suggestions across + a fleet. Optional. + """ + def __init__( self, *, @@ -1281,12 +1290,16 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): | None = ..., deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_version_capabilities", @@ -1306,6 +1319,8 @@ class PollWorkflowTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_control_task_queue", @@ -2097,6 +2112,7 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): TASK_QUEUE_METADATA_FIELD_NUMBER: builtins.int WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in @@ -2135,6 +2151,14 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): ) -> temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions: """Worker deployment options that user has set in the worker.""" + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state, used to spread poller scaling suggestions across + a fleet. Optional. + """ + def __init__( self, *, @@ -2150,12 +2174,16 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): | None = ..., deployment_options: temporalio.api.deployment.v1.message_pb2.WorkerDeploymentOptions | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "task_queue_metadata", @@ -2175,6 +2203,8 @@ class PollActivityTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "task_queue_metadata", @@ -8115,6 +8145,7 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): WORKER_VERSION_CAPABILITIES_FIELD_NUMBER: builtins.int DEPLOYMENT_OPTIONS_FIELD_NUMBER: builtins.int WORKER_HEARTBEAT_FIELD_NUMBER: builtins.int + POLLER_POOL_INFO_FIELD_NUMBER: builtins.int namespace: builtins.str poller_group_id: builtins.str """Unless this is the first poll, the client must pass one of the poller group IDs received in @@ -8153,6 +8184,12 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): ]: """Worker info to be sent to the server.""" + @property + def poller_pool_info( + self, + ) -> temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo: + """Worker-reported poller pool state. Optional.""" + def __init__( self, *, @@ -8169,12 +8206,16 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): temporalio.api.worker.v1.message_pb2.WorkerHeartbeat ] | None = ..., + poller_pool_info: temporalio.api.taskqueue.v1.message_pb2.PollerPoolInfo + | None = ..., ) -> None: ... def HasField( self, field_name: typing.Literal[ "deployment_options", b"deployment_options", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_version_capabilities", @@ -8192,6 +8233,8 @@ class PollNexusTaskQueueRequest(google.protobuf.message.Message): b"namespace", "poller_group_id", b"poller_group_id", + "poller_pool_info", + b"poller_pool_info", "task_queue", b"task_queue", "worker_heartbeat", diff --git a/temporalio/bridge/Cargo.lock b/temporalio/bridge/Cargo.lock index 531d3a6515..17055a9764 100644 --- a/temporalio/bridge/Cargo.lock +++ b/temporalio/bridge/Cargo.lock @@ -37,7 +37,7 @@ checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -54,9 +54,9 @@ checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" [[package]] name = "aws-lc-fips-sys" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d640b9b76a2ff1fcf2d615a6f912460dfb1613eaf6d4836b8539784f75e22d7f" +checksum = "b744eed18cd75d814effdf2aba2880f912abe0fe1c327b361341d31aba9a7005" dependencies = [ "bindgen", "cc", @@ -69,9 +69,9 @@ dependencies = [ [[package]] name = "aws-lc-rs" -version = "1.18.2" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "faac5829c2b74c28f830747e7818ccfb684261b5f48a1118b1e2a13d36dfab13" +checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53" dependencies = [ "aws-lc-fips-sys", "aws-lc-sys", @@ -81,9 +81,9 @@ dependencies = [ [[package]] name = "aws-lc-sys" -version = "0.46.0" +version = "0.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1622d8446a2d4b2ce0c7eefc73dd43a99779028d5ee5c2dd8073a658ba8a2bc" +checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52" dependencies = [ "cc", "cmake", @@ -172,7 +172,7 @@ dependencies = [ "regex", "rustc-hash", "shlex", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -201,14 +201,14 @@ dependencies = [ "prettyplease 0.3.0", "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] name = "bumpalo" -version = "3.20.3" +version = "3.20.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" +checksum = "87a0cf66fd1eb2fb7b822cb78370d82303750809bc6ba855f3f58e517d3238db" [[package]] name = "bytes" @@ -227,9 +227,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.10.0" +version = "1.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0" +checksum = "33ef9e3e8154a45c7a95cff4c1299702106ad94062d7bb85fdc5d3a5afd91d45" dependencies = [ "find-msvc-tools", "jobserver", @@ -309,6 +309,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "constant_time_eq" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb6feb175df65d0a3ccd3e73484e940d0ac664e8034f0519fd49a93db3071d9" +dependencies = [ + "rustversion", +] + [[package]] name = "convert_case" version = "0.10.0" @@ -345,9 +354,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.5.3" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055" +checksum = "2b929dd2a135771f40afabd1073f85eed59c800b7c61901e5c254270497dad64" dependencies = [ "cfg-if", ] @@ -387,7 +396,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -398,7 +407,7 @@ checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785" dependencies = [ "darling_core", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -453,7 +462,7 @@ checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -531,9 +540,9 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "e35d6e78f4cebb90e51d543db8fe41528851d6deeef6ef21ebd4bfdc1e784776" dependencies = [ "libc", "windows-sys 0.61.2", @@ -563,15 +572,15 @@ checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48" [[package]] name = "fixedbitset" -version = "0.5.7" +version = "0.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" +checksum = "5905ec755cc8386d7928353e4d356d2be3e89e81e5ca01fe630a1ca4d08dc175" [[package]] name = "flate2" -version = "1.1.10" +version = "1.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +checksum = "626d4928326b646e70f65ed36fc7cf9f206bdb68a0019ee7c6b4709da4e084c4" dependencies = [ "crc32fast", "miniz_oxide", @@ -676,7 +685,7 @@ checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -1080,11 +1089,20 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + [[package]] name = "itoa" -version = "1.0.18" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4" [[package]] name = "jni" @@ -1147,9 +1165,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.106" +version = "0.3.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a" dependencies = [ "cfg-if", "futures-util", @@ -1164,9 +1182,9 @@ checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" [[package]] name = "libbz2-rs-sys" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34b357333733e8260735ba5894eb928c02ecc69c78715f01a8019e7fa7f2db4c" +checksum = "32f454fd6831a29c0e827ed075bca2a15be201bd57f4168f0fd1041124eab17e" [[package]] name = "libc" @@ -1216,9 +1234,9 @@ dependencies = [ [[package]] name = "log" -version = "0.4.34" +version = "0.4.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c" [[package]] name = "lru" @@ -1258,9 +1276,9 @@ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" [[package]] name = "mime" -version = "0.3.17" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +checksum = "d5848f5a9e8117cf94f2f90faac24a87ff81600ff8628c1e3deaab572e76bfa1" [[package]] name = "minimal-lexical" @@ -1280,9 +1298,9 @@ dependencies = [ [[package]] name = "mio" -version = "1.2.4" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +checksum = "20521a903f02b0a573cd6840e9d0a5a0cc043d361fe924092cd70f8556cc9c4a" dependencies = [ "libc", "wasi", @@ -1523,7 +1541,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2ed4d5c6ae95e08ac768883c8401cf0e8deb4e6e1d6a4e1fd3d2ec4f0ec63200" dependencies = [ "heck", - "itertools", + "itertools 0.14.0", "prost", "prost-types", ] @@ -1662,7 +1680,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2bfe0f4c752e450fc2faf62654f1c134747922825d5b04ca717b8874f41a40c0" dependencies = [ "proc-macro2", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -1690,9 +1708,9 @@ dependencies = [ [[package]] name = "prost" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "528ac67416ff8646872a3c02cad9cc4ee5dc9f9540c9b10771855c95cb2e5ae1" +checksum = "3ef0b569d1d907ab3a28596aee62cf1f61dacb0529a4bedcd8e7460e2d5228b4" dependencies = [ "bytes", "prost-derive", @@ -1700,33 +1718,33 @@ dependencies = [ [[package]] name = "prost-build" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03da047801ff44bb6a4d407d4860c05fd70bb81714e6b2f3812603d5b145b042" +checksum = "b6e4d69d0fa3e7f6f9cf6b53a0e83e4fc99ba3586f65ce166cff30bd13bb4ad2" dependencies = [ "heck", - "itertools", + "itertools 0.15.0", "log", "multimap", "petgraph", - "prettyplease 0.2.37", + "prettyplease 0.3.0", "prost", "prost-types", "pulldown-cmark", "pulldown-cmark-to-cmark", "regex", - "syn 2.0.119", + "syn 3.0.10", "tempfile", ] [[package]] name = "prost-derive" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b570b25f7617e43d59005d0990ccb79e950a423952cea19671b7a876da390adf" +checksum = "1ad9c5423459fa2f729b8d9235fab810aa29628b171467744fc86d21460ad70d" dependencies = [ "anyhow", - "itertools", + "itertools 0.15.0", "proc-macro2", "quote", "syn 2.0.119", @@ -1734,9 +1752,9 @@ dependencies = [ [[package]] name = "prost-types" -version = "0.14.4" +version = "0.14.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f94967dc7688f3054c7fac87473ffae4cc4c3904800e2d9f5b857246d8963b0a" +checksum = "f29a7c4c7a84cef41a53d338a2d10d4f1b043ea5c3dde26db22ee2c9c1b1c75b" dependencies = [ "prost", ] @@ -1789,9 +1807,9 @@ dependencies = [ [[package]] name = "pulldown-cmark" -version = "0.13.5" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278e9268c93b9e498a2da46c34d90ba93a3255eb99009646398f34bc73ab36eb" +checksum = "3db2be46835f013dd3f4fa7f5f7402c537787b54ebb6fe2b94bbdd7e2669bb7b" dependencies = [ "bitflags", "memchr", @@ -2196,9 +2214,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.15.1" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +checksum = "102f35f7de7b06d8c61f1cff6592f5253e0dea431c74867aad5dfd70f44663fb" dependencies = [ "web-time", "zeroize", @@ -2233,9 +2251,9 @@ checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" [[package]] name = "rustls-webpki" -version = "0.103.16" +version = "0.103.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281" +checksum = "e3a0760a887c14823fca5a1c970b01d47c328c696c0c64829d1df50e8f853fd5" dependencies = [ "aws-lc-rs", "ring", @@ -2335,7 +2353,7 @@ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -2353,9 +2371,9 @@ dependencies = [ [[package]] name = "serde_spanned" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c" +checksum = "9c187e0a369471c550af028cba56d4f4fa2a489ad28151ae95a4d340a2a8b782" dependencies = [ "serde_core", ] @@ -2442,9 +2460,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.16.4" +version = "1.16.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8" +checksum = "149309498a5f7334b12ddae0cad8aba81ce785fe91755068867e017cf98fee46" [[package]] name = "socket2" @@ -2487,9 +2505,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.9" +version = "3.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79" dependencies = [ "proc-macro2", "quote", @@ -2513,7 +2531,7 @@ checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -2543,9 +2561,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.13.5" +version = "0.13.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca" +checksum = "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da" [[package]] name = "tempfile" @@ -2568,6 +2586,7 @@ dependencies = [ "async-trait", "aws-lc-rs", "futures", + "parking_lot", "prost", "pyo3", "pyo3-async-runtimes", @@ -2585,7 +2604,7 @@ dependencies = [ [[package]] name = "temporalio-client" -version = "1.1.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", @@ -2617,7 +2636,7 @@ dependencies = [ [[package]] name = "temporalio-common" -version = "1.1.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", @@ -2658,7 +2677,7 @@ dependencies = [ [[package]] name = "temporalio-common-wasm" -version = "1.1.0" +version = "1.2.0" dependencies = [ "anyhow", "async-trait", @@ -2683,16 +2702,16 @@ dependencies = [ [[package]] name = "temporalio-macros" -version = "1.1.0" +version = "1.2.0" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] name = "temporalio-protos" -version = "0.10.0" +version = "0.11.0" dependencies = [ "anyhow", "base64 0.23.1", @@ -2712,7 +2731,7 @@ dependencies = [ [[package]] name = "temporalio-sdk-core" -version = "0.10.0" +version = "0.11.0" dependencies = [ "anyhow", "async-trait", @@ -2727,7 +2746,7 @@ dependencies = [ "futures", "futures-util", "gethostname", - "itertools", + "itertools 0.14.0", "lru", "mockall", "opentelemetry-otlp", @@ -2781,7 +2800,7 @@ checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -2834,7 +2853,7 @@ checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -2874,9 +2893,9 @@ dependencies = [ [[package]] name = "toml" -version = "1.1.8+spec-1.1.0" +version = "1.2.1+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d" +checksum = "d5755c51863cdac711f1956baf8eb9588e060755f7d3c4c979e70ea1e1f32cd7" dependencies = [ "indexmap", "serde_core", @@ -2889,9 +2908,9 @@ dependencies = [ [[package]] name = "toml_datetime" -version = "1.1.2+spec-1.1.0" +version = "1.1.3+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +checksum = "173f25c883cd2176a2d8212155638c0a60d484a9d84546d270866f40f56b6e49" dependencies = [ "serde_core", ] @@ -2907,15 +2926,15 @@ dependencies = [ [[package]] name = "toml_writer" -version = "1.1.3+spec-1.1.0" +version = "1.2.0+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770" +checksum = "009dbb7700f11c55ef83aebbe4c0e9cf1f1ac0844bd8d6f00dc38f302026e13a" [[package]] name = "tonic" -version = "0.14.8" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd1fa9b1a51188f3266a823208078315811269d06d272c3a61be0b9a194194ff" +checksum = "e2cdfc673aabd30fe8fee92e65837b644c37c5d47f0f97ae6d5e0f1237d15e1b" dependencies = [ "async-trait", "axum", @@ -2946,9 +2965,9 @@ dependencies = [ [[package]] name = "tonic-build" -version = "0.14.8" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c07bd4e9f99e2a3ed8bebad596ae02a94e53745b68acc6900e22c3475c8bc44" +checksum = "ac6d916d206ed7bdda1778ddff9bda43303789c258877e7bc22fb44ee5c984b4" dependencies = [ "prettyplease 0.2.37", "proc-macro2", @@ -2958,9 +2977,9 @@ dependencies = [ [[package]] name = "tonic-prost" -version = "0.14.8" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63c616ffaa648f7c5dd5657e97d9a285fcb44ff3b70da761d436f5a13ff7be6" +checksum = "eba464054e2226f182a34489b8b079bf4c6e3e7ab5fd7fc30e024f24aa92a484" dependencies = [ "bytes", "prost", @@ -2969,9 +2988,9 @@ dependencies = [ [[package]] name = "tonic-prost-build" -version = "0.14.8" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a05d8957fac6b3542999796cb4449d45da790751962f974a457e5e00c43d78c" +checksum = "2ea216ddc448e08e7839ab09e20e60b06b6a1c32745ccb212c0ebd161c199f1b" dependencies = [ "prettyplease 0.2.37", "proc-macro2", @@ -2985,9 +3004,9 @@ dependencies = [ [[package]] name = "tonic-types" -version = "0.14.8" +version = "0.14.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c7673cdf53817d382bad8ecb56507b4595a2adb07ef16bf0dd965ef48c1fced" +checksum = "ccbb6c31deb8e99dcdf87df19c5289b7838a600da74a8224baa671e52fe7c5ad" dependencies = [ "prost", "prost-types", @@ -3144,7 +3163,7 @@ checksum = "f153acc4e99a5f2a5aefa09fb078be54e26271b2813f6041200b224c098d8328" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] @@ -3197,15 +3216,24 @@ dependencies = [ [[package]] name = "utf8_iter" -version = "1.0.4" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0" +dependencies = [ + "utf_types", +] + +[[package]] +name = "utf_types" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6" [[package]] name = "uuid" -version = "1.29.0" +version = "1.29.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a0e2d11620c50695fe12bbbfde96b3477fe606e7284c22d505c12ce51214514" +checksum = "bed99139f7dac9b5cfe5f17be4d66dc7079a34dee1d74bcc77217119240e267c" dependencies = [ "getrandom 0.4.3", ] @@ -3258,12 +3286,11 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.129" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c" dependencies = [ "cfg-if", - "once_cell", "rustversion", "wasm-bindgen-macro", "wasm-bindgen-shared", @@ -3271,9 +3298,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.79" +version = "0.4.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e" +checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501" dependencies = [ "js-sys", "tokio", @@ -3282,9 +3309,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.129" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3292,22 +3319,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.129" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a" dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.129" +version = "0.2.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e" dependencies = [ "unicode-ident", ] @@ -3327,9 +3354,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.106" +version = "0.3.107" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88" dependencies = [ "js-sys", "wasm-bindgen", @@ -3347,9 +3374,9 @@ dependencies = [ [[package]] name = "webpki-root-certs" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e49d0e65abc00c142e8f9428da991da9f1a250c39be97459901eb12b9b49f62a" +checksum = "293198dcebfb821155b5092ab94b5a82ff180eddd7241df3bd6e66a4ffd1a585" dependencies = [ "rustls-pki-types", ] @@ -3579,9 +3606,9 @@ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] name = "winnow" -version = "1.0.4" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +checksum = "8c3b93199df0ab874cdf0c6a94f0a0dc3423fe41f1cafb62b8bd7b1deb277aef" [[package]] name = "wit-bindgen" @@ -3597,9 +3624,9 @@ checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" [[package]] name = "xattr" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156" +checksum = "963d6fab92d5504b971dc8bd90ca743c2575e590bc8071ea5bc571598667ae08" dependencies = [ "libc", "rustix", @@ -3624,7 +3651,7 @@ checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", "synstructure", ] @@ -3665,7 +3692,7 @@ checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", "synstructure", ] @@ -3674,6 +3701,20 @@ name = "zeroize" version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] name = "zerotrie" @@ -3705,24 +3746,27 @@ checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a" dependencies = [ "proc-macro2", "quote", - "syn 3.0.9", + "syn 3.0.10", ] [[package]] name = "zip" -version = "9.1.2" +version = "9.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec2e3161de27091f18a831d9494e9c53378a34833af5c1dda35ad85849da18d6" +checksum = "e3476fd497ac8af5b1ec7b51acab7bef380f7e8dd8e0487595bafd839417a302" dependencies = [ "bzip2", + "constant_time_eq", "crc32fast", "flate2", "getrandom 0.4.3", "indexmap", + "libc", "memchr", "nix", "typed-path", "windows-sys 0.61.2", + "zeroize", "zopfli", "zstd", ] @@ -3753,27 +3797,27 @@ dependencies = [ [[package]] name = "zstd" -version = "0.14.3" +version = "0.14.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db3ae9bf90af6e40197bef767eeefc46ad6397420fe873830bd85e5fbbfb3c70" +checksum = "ad5020ab8f27bfc0024ad0a07aed6bf022a16208f479686fbed4fdd0c85eb0b3" dependencies = [ "zstd-safe", ] [[package]] name = "zstd-safe" -version = "8.2.0" +version = "8.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded520f16b29e1a9b771c722221b2b0a0398c2316d9bb3c42b458a5414d7434b" +checksum = "5a9ea9cc2576c2fcc104e9cec04f46e3ede564f4fbc206831e4ef7e859a4140d" dependencies = [ "zstd-sys", ] [[package]] name = "zstd-sys" -version = "2.1.2+zstd.1.5.7" +version = "2.1.3+zstd.1.5.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "481ada9c543b2323cbb7bbdbb5249177fbf0188ed959ed2c15e4b22421c84ed3" +checksum = "f729a06d0257428fd9d997ac8db7e1407bd0262ab016b085b36bc52957c0052d" dependencies = [ "cc", "pkg-config", diff --git a/temporalio/bridge/Cargo.toml b/temporalio/bridge/Cargo.toml index 1aab3d6720..056d5e3e1b 100644 --- a/temporalio/bridge/Cargo.toml +++ b/temporalio/bridge/Cargo.toml @@ -46,6 +46,7 @@ async-trait = "0.1" # aws-lc-fips-sys instead of aws-lc-sys. Ported from sdk-ruby PR #466. aws-lc-rs = { version = "1", features = ["fips"], optional = true } futures = "0.3" +parking_lot = "0.12" prost = "0.14" pyo3 = { version = "0.29", features = [ "extension-module", @@ -58,16 +59,16 @@ pythonize = "0.29" # default-features disabled so the rustls provider isn't pinned to `tls-ring`; # the bridge's tls-ring/tls-aws-lc features (above) select it. Re-add the # crate's non-TLS default (`envconfig`). -temporalio-client = { version = "1.1.0", path = "./sdk-core/crates/client", default-features = false, features = [ +temporalio-client = { version = "1.2.0", path = "./sdk-core/crates/client", default-features = false, features = [ "envconfig", "experimental", ] } -temporalio-common = { version = "1.1.0", path = "./sdk-core/crates/common", features = [ +temporalio-common = { version = "1.2.0", path = "./sdk-core/crates/common", features = [ "envconfig", "otel" ]} # default-features disabled (drops the pinned `tls-ring`); re-add the non-TLS # defaults the bridge relied on (`envconfig`, `prometheus`) plus `ephemeral-server`. -temporalio-sdk-core = { version = "0.10.0", path = "./sdk-core/crates/sdk-core", default-features = false, features = [ +temporalio-sdk-core = { version = "0.11.0", path = "./sdk-core/crates/sdk-core", default-features = false, features = [ "ephemeral-server", "envconfig", "prometheus", diff --git a/temporalio/bridge/sdk-core b/temporalio/bridge/sdk-core index ff30d403dc..c675c32469 160000 --- a/temporalio/bridge/sdk-core +++ b/temporalio/bridge/sdk-core @@ -1 +1 @@ -Subproject commit ff30d403dc4fcf35b888677f25b96bdbda88d323 +Subproject commit c675c32469af707e1c979a7b808c70b4a0608b82 diff --git a/temporalio/bridge/src/client.rs b/temporalio/bridge/src/client.rs index 28b3bb37c8..211392ed11 100644 --- a/temporalio/bridge/src/client.rs +++ b/temporalio/bridge/src/client.rs @@ -110,13 +110,14 @@ pub fn connect_client<'a>( runtime_ref: &runtime::RuntimeRef, config: ClientConfig, ) -> PyResult> { + runtime_ref.runtime.assert_same_process("create client")?; let metrics_meter = runtime_ref .runtime .core + .read()? .telemetry() .get_temporal_metric_meter(); let opts = config.into_connection_options(metrics_meter)?; - runtime_ref.runtime.assert_same_process("create client")?; let runtime = runtime_ref.runtime.clone(); runtime_ref.runtime.future_into_py(py, async move { Ok(ClientRef { diff --git a/temporalio/bridge/src/lib.rs b/temporalio/bridge/src/lib.rs index a4fda26db6..cf96c7817a 100644 --- a/temporalio/bridge/src/lib.rs +++ b/temporalio/bridge/src/lib.rs @@ -47,6 +47,10 @@ fn temporal_sdk_bridge(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> { m.add_class::()?; m.add_function(wrap_pyfunction!(init_runtime, m)?)?; m.add_function(wrap_pyfunction!(raise_in_thread, m)?)?; + py.import("atexit")?.call_method1( + "register", + (wrap_pyfunction!(runtime::shutdown_runtimes, m)?,), + )?; // Testing stuff m.add_class::()?; @@ -90,7 +94,7 @@ fn connect_client<'a>( } #[pyfunction] -fn new_metric_meter(runtime_ref: &runtime::RuntimeRef) -> Option { +fn new_metric_meter(runtime_ref: &runtime::RuntimeRef) -> PyResult> { metric::new_metric_meter(runtime_ref) } diff --git a/temporalio/bridge/src/metric.rs b/temporalio/bridge/src/metric.rs index 276933f6db..7a4622a86a 100644 --- a/temporalio/bridge/src/metric.rs +++ b/temporalio/bridge/src/metric.rs @@ -55,10 +55,11 @@ pub struct MetricGaugeFloatRef { gauge: metrics::GaugeF64, } -pub fn new_metric_meter(runtime_ref: &runtime::RuntimeRef) -> Option { - runtime_ref +pub fn new_metric_meter(runtime_ref: &runtime::RuntimeRef) -> PyResult> { + Ok(runtime_ref .runtime .core + .read()? .telemetry() .get_metric_meter() .map(|meter| { @@ -69,7 +70,7 @@ pub fn new_metric_meter(runtime_ref: &runtime::RuntimeRef) -> Option, metrics_call_buffer: Option>>, log_forwarder_handle: Option>>, } -/// Owns the Core runtime so the last runtime clone can shut it down with the GIL released. -/// Shutting down waits for running Tokio tasks, and the log forwarder may be one of them, -/// waiting for the GIL. -pub(crate) struct CoreRuntimeHandle(Option); +// Python can finish an awaited RPC before the blocking Rust task which delivered +// its result has returned. Join native threads before interpreter finalization, +// while those tasks can still attach to Python and release their thread states. +static RUNTIMES: RuntimeRegistry = RuntimeRegistry::new(); -impl std::ops::Deref for CoreRuntimeHandle { - type Target = CoreRuntime; +struct RuntimeRegistry { + state: Mutex, +} + +struct RuntimeRegistryState { + shutting_down: bool, + runtimes: Vec>, +} + +impl RuntimeRegistry { + const fn new() -> Self { + Self { + state: Mutex::new(RuntimeRegistryState { + shutting_down: false, + runtimes: Vec::new(), + }), + } + } + + fn check_running(&self) -> PyResult<()> { + self.state.lock().check_running() + } + + fn register(&self, runtime: &Arc) -> PyResult<()> { + let mut state = self.state.lock(); + state.check_running()?; + state.runtimes.retain(|runtime| runtime.strong_count() > 0); + state.runtimes.push(Arc::downgrade(runtime)); + Ok(()) + } + + fn begin_shutdown(&self) -> Vec> { + let mut state = self.state.lock(); + state.shutting_down = true; + std::mem::take(&mut state.runtimes) + } +} + +impl RuntimeRegistryState { + fn check_running(&self) -> PyResult<()> { + if self.shutting_down { + return Err(PyRuntimeError::new_err( + "Temporal runtimes are shutting down", + )); + } + Ok(()) + } +} + +pub(crate) struct CoreRuntimeHandle { + pid: u32, + core: RwLock>, +} + +impl CoreRuntimeHandle { + pub(crate) fn read(&self) -> PyResult> { + RwLockReadGuard::try_map(self.core.read(), Option::as_ref) + .map_err(|_| PyRuntimeError::new_err("Temporal runtime has shut down")) + } - fn deref(&self) -> &CoreRuntime { - self.0.as_ref().expect("Core runtime used after drop") + fn shutdown(&self) { + // Do not hold the lock while joining threads: their remaining callbacks + // may try to use this runtime and must be able to observe its shutdown. + let core = self.core.write().take(); + drop(core); } } impl Drop for CoreRuntimeHandle { fn drop(&mut self) { - let _ = Python::try_attach(|py| py.detach(|| drop(self.0.take()))); + let mut core = self.core.get_mut().take(); + if core.is_some() && self.pid == std::process::id() { + let _ = Python::try_attach(|py| py.detach(|| drop(core.take()))); + } + // A forked child or an interpreter which bypassed atexit cannot + // safely join threads that might still need the interpreter. + std::mem::forget(core); } } +#[pyfunction] +pub(crate) fn shutdown_runtimes(py: Python) { + let runtimes = RUNTIMES + .begin_shutdown() + .into_iter() + .filter_map(|runtime| runtime.upgrade()) + .filter(|runtime| runtime.pid == std::process::id()) + .collect::>(); + // Tokio joins blocking tasks even after their Python futures completed or + // were cancelled. They must be able to acquire the GIL until the join ends. + py.detach(|| { + for runtime in runtimes { + runtime.shutdown(); + } + }); +} + #[derive(FromPyObject)] pub struct TelemetryConfig { logging: Option, @@ -118,6 +201,7 @@ const FORWARD_LOG_BUFFER_SIZE: usize = 2048; const FORWARD_LOG_MAX_FREQ_MS: u64 = 10; pub fn init_runtime(options: RuntimeOptions) -> PyResult { + RUNTIMES.check_running()?; let RuntimeOptions { telemetry: TelemetryConfig { logging, metrics }, worker_heartbeat_interval_millis, @@ -215,10 +299,14 @@ pub fn init_runtime(options: RuntimeOptions) -> PyResult { })) }); + let core = Arc::new(CoreRuntimeHandle { + pid: std::process::id(), + core: RwLock::new(Some(core)), + }); + RUNTIMES.register(&core)?; Ok(RuntimeRef { runtime: Runtime { - pid: std::process::id(), - core: Arc::new(CoreRuntimeHandle(Some(core))), + core, metrics_call_buffer, log_forwarder_handle, }, @@ -239,16 +327,17 @@ impl Runtime { F: Future> + Send + 'static, T: for<'py> IntoPyObject<'py> + Send + 'static, { - let _guard = self.core.tokio_handle().enter(); + let handle = self.core.read()?.tokio_handle(); + let _guard = handle.enter(); pyo3_async_runtimes::generic::future_into_py::(py, fut) } pub(crate) fn assert_same_process(&self, action: &'static str) -> PyResult<()> { let current_pid = std::process::id(); - if self.pid != current_pid { + let runtime_pid = self.core.pid; + if runtime_pid != current_pid { Err(PyAssertionError::new_err(format!( - "Cannot {} across forks (original runtime PID is {}, current is {})", - action, self.pid, current_pid, + "Cannot {action} across forks (original runtime PID is {runtime_pid}, current is {current_pid})", ))) } else { Ok(()) @@ -284,28 +373,32 @@ impl RuntimeRef { ) } - fn write_test_info_log(&self, message: &str, extra_data: &str) { + fn write_test_info_log(&self, message: &str, extra_data: &str) -> PyResult<()> { let _g = tracing::subscriber::set_default( self.runtime .core + .read()? .telemetry() .trace_subscriber() .unwrap() .clone(), ); tracing::info!(message, extra_data = extra_data); + Ok(()) } - fn write_test_debug_log(&self, message: &str, extra_data: &str) { + fn write_test_debug_log(&self, message: &str, extra_data: &str) -> PyResult<()> { let _g = tracing::subscriber::set_default( self.runtime .core + .read()? .telemetry() .trace_subscriber() .unwrap() .clone(), ); tracing::debug!(message, extra_data = extra_data); + Ok(()) } } diff --git a/temporalio/bridge/src/worker.rs b/temporalio/bridge/src/worker.rs index 39cdc5e773..46b6c00de9 100644 --- a/temporalio/bridge/src/worker.rs +++ b/temporalio/bridge/src/worker.rs @@ -480,10 +480,14 @@ pub struct ResourceBasedTunerConfig { macro_rules! enter_sync { ($runtime:expr) => { - if let Some(subscriber) = $runtime.core.telemetry().trace_subscriber() { + let (subscriber, handle) = { + let core = $runtime.core.read()?; + (core.telemetry().trace_subscriber(), core.tokio_handle()) + }; + if let Some(subscriber) = subscriber { temporalio_common::telemetry::set_trace_subscriber_for_current_thread(subscriber); } - let _guard = $runtime.core.tokio_handle().enter(); + let _guard = handle.enter(); }; } @@ -497,7 +501,7 @@ pub fn new_worker( let event_loop_task_locals = Arc::new(OnceLock::new()); let config = convert_worker_config(config, event_loop_task_locals.clone())?; let worker = temporalio_sdk_core::init_worker( - &runtime_ref.runtime.core, + &*runtime_ref.runtime.core.read()?, config, client.connection.clone(), ) diff --git a/temporalio/bridge/worker.py b/temporalio/bridge/worker.py index 02cc7d03fa..fa5f337ca7 100644 --- a/temporalio/bridge/worker.py +++ b/temporalio/bridge/worker.py @@ -330,10 +330,11 @@ async def decode_activation( _Visitor(data_converter._external_retrieve_payload_sequence), activation ) - await CommandAwarePayloadVisitor( - skip_search_attributes=True, - skip_headers=not decode_headers, - ).visit(_Visitor(data_converter._decode_payload_sequence), activation) + if data_converter.payload_codec: + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not decode_headers, + ).visit(_Visitor(data_converter._decode_payload_sequence), activation) return metrics @@ -349,6 +350,10 @@ async def encode_completion( Returns: Metrics from any external storage store operations that occurred. """ + metrics = temporalio.converter._extstore.StorageOperationMetrics() + if not data_converter._has_codec_or_external_storage: + return metrics + await CommandAwarePayloadVisitor( skip_search_attributes=True, skip_headers=not encode_headers, @@ -357,16 +362,16 @@ async def encode_completion( completion, ) - metrics = temporalio.converter._extstore.StorageOperationMetrics() - with metrics.track(): - await CommandAwarePayloadVisitor( - skip_search_attributes=True, - skip_headers=not encode_headers, - concurrency_limit=storage_concurrency_limit, - ).visit( - _Visitor(data_converter._external_store_payload_sequence), - completion, - ) + if data_converter.external_storage: + with metrics.track(): + await CommandAwarePayloadVisitor( + skip_search_attributes=True, + skip_headers=not encode_headers, + concurrency_limit=storage_concurrency_limit, + ).visit( + _Visitor(data_converter._external_store_payload_sequence), + completion, + ) await CommandAwarePayloadVisitor( skip_search_attributes=True, diff --git a/temporalio/client/_impl.py b/temporalio/client/_impl.py index 72986ffa70..e6424c15eb 100644 --- a/temporalio/client/_impl.py +++ b/temporalio/client/_impl.py @@ -11,6 +11,7 @@ Mapping, ) from datetime import timedelta +from functools import cached_property from typing import ( TYPE_CHECKING, Any, @@ -146,6 +147,12 @@ def __init__(self, client: Client) -> None: # type: ignore # We are intentionally not calling the base class's __init__ here self._client = client + @cached_property + def _targetless_data_converter(self) -> temporalio.converter.DataConverter: + return self._client.data_converter._with_store_context( + StorageDriverStoreContext(namespace=self._client.namespace) + ) + ### Workflow calls async def start_workflow( @@ -245,6 +252,7 @@ async def _build_signal_with_start_workflow_execution_request( workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, type=input.workflow, namespace=self._client.namespace ), @@ -284,6 +292,7 @@ async def _populate_start_workflow_execution_request( workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, type=input.workflow, namespace=self._client.namespace ), @@ -412,6 +421,7 @@ async def query_workflow(self, input: QueryWorkflowInput) -> Any: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -478,6 +488,7 @@ async def signal_workflow(self, input: SignalWorkflowInput) -> None: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -514,6 +525,7 @@ async def terminate_workflow(self, input: TerminateWorkflowInput) -> None: workflow_id=input.id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=input.id, run_id=input.run_id or None, @@ -594,6 +606,7 @@ async def _build_start_activity_execution_request( workflow_type=None, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=input.id, type=input.activity_type, @@ -905,6 +918,7 @@ async def _build_update_workflow_execution_request( workflow_id=workflow_id, ), StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=workflow_id, run_id=(input.run_id or None) @@ -1113,6 +1127,7 @@ def _get_async_activity_store_context( if isinstance(id_or_token, AsyncActivityIDReference): if id_or_token.workflow_id: return StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverWorkflowInfo( id=id_or_token.workflow_id or None, run_id=id_or_token.run_id or None, @@ -1120,6 +1135,7 @@ def _get_async_activity_store_context( ), ) return StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=id_or_token.activity_id, run_id=id_or_token.run_id or None, @@ -1127,7 +1143,7 @@ def _get_async_activity_store_context( ), ) else: - return StorageDriverStoreContext(target=None) + return StorageDriverStoreContext(namespace=self._client.namespace) async def heartbeat_async_activity( self, input: HeartbeatAsyncActivityInput @@ -1345,7 +1361,7 @@ async def create_schedule(self, input: CreateScheduleInput) -> ScheduleHandle: initial_patch=initial_patch, identity=self._client.identity, request_id=str(uuid.uuid4()), - memo=await self._client.data_converter._encode_memo(input.memo) + memo=await self._targetless_data_converter._encode_memo(input.memo) if input.memo else None, ) @@ -1570,7 +1586,9 @@ async def start_nexus_operation( service=input.service, operation=input.operation, ) - data_converter = self._client.data_converter.with_context(nexus_context) + data_converter = self._client.data_converter._with_contexts( + nexus_context, StorageDriverStoreContext(namespace=self._client.namespace) + ) req = temporalio.api.workflowservice.v1.StartNexusOperationExecutionRequest( namespace=self._client.namespace, identity=self._client.identity, @@ -1802,5 +1820,5 @@ async def _apply_headers( dest, self._client.config(active_config=True)["header_codec_behavior"] == HeaderCodecBehavior.CODEC, - self._client.data_converter, + self._targetless_data_converter, ) diff --git a/temporalio/client/_schedule.py b/temporalio/client/_schedule.py index e0a4bcc478..7f4b438c09 100644 --- a/temporalio/client/_schedule.py +++ b/temporalio/client/_schedule.py @@ -800,6 +800,7 @@ async def _to_proto( workflow_id=self.id, ), StorageDriverStoreContext( + namespace=client.namespace, target=StorageDriverWorkflowInfo( id=self.id, type=self.workflow, namespace=client.namespace ), @@ -858,7 +859,9 @@ async def _to_proto( client.config(active_config=True)["header_codec_behavior"] == HeaderCodecBehavior.CODEC and not self._from_raw, - client.data_converter, + client.data_converter._with_store_context( + StorageDriverStoreContext(namespace=client.namespace) + ), ) return action diff --git a/temporalio/contrib/aws/lambda_worker/_configure.py b/temporalio/contrib/aws/lambda_worker/_configure.py index dd1657f6dc..2c50b4fa21 100644 --- a/temporalio/contrib/aws/lambda_worker/_configure.py +++ b/temporalio/contrib/aws/lambda_worker/_configure.py @@ -41,10 +41,11 @@ class LambdaWorkerConfig: ``graceful_shutdown_timeout + 2s``. If you change ``graceful_shutdown_timeout`` in ``worker_config``, adjust this accordingly. - shutdown_hooks: Functions called at the end of each Lambda invocation, - after the worker has stopped. Run in list order. Each may be sync - or async. Use this to flush telemetry providers or release other - per-process resources. + shutdown_hooks: Functions called at invocation exit, including failure + or cancellation, after configuration setup succeeds. Run in list + order, after the worker stops (if started) and before configure + teardown. Each may be sync or async. Use this to flush telemetry + providers or release other per-process resources. """ client_connect_config: ClientConnectConfig = field( diff --git a/temporalio/contrib/aws/lambda_worker/_run_worker.py b/temporalio/contrib/aws/lambda_worker/_run_worker.py index f384fb9543..a6ed358f29 100644 --- a/temporalio/contrib/aws/lambda_worker/_run_worker.py +++ b/temporalio/contrib/aws/lambda_worker/_run_worker.py @@ -271,7 +271,7 @@ async def _invocation_config_scope( """Run *configure* (see run_worker for the forms) against a fresh per-invocation config and yield it. For the generator / context-manager forms, post-``yield`` teardown runs when the caller's block exits, including on error. Task queue is validated after - setup. + setup. The config's shutdown hooks run even if validation fails, before that teardown. """ config = new_config() if inspect.isasyncgenfunction(configure): @@ -285,13 +285,21 @@ async def _invocation_config_scope( # A @asynccontextmanager-decorated callback returns the context manager directly. cm = result if result is not None and hasattr(result, "__aenter__") else None + # Run hooks on failure as well as success, before configure teardown can + # close resources used by the hooks. if cm is not None: async with cm: + try: + _validate_task_queue(config) + yield config + finally: + await _run_shutdown_hooks(config) + else: + try: _validate_task_queue(config) yield config - else: - _validate_task_queue(config) - yield config + finally: + await _run_shutdown_hooks(config) async def _invocation_handler( @@ -363,7 +371,3 @@ async def _invocation_handler( else: # No deadline - run until cancelled. await worker.run() - - # Run shutdown hooks after worker has stopped, before any async-generator - # configure teardown (which unwinds on scope exit). - await _run_shutdown_hooks(config) diff --git a/temporalio/contrib/aws/lambda_worker/otel.py b/temporalio/contrib/aws/lambda_worker/otel.py index 5b5dc91e11..d6834aa612 100644 --- a/temporalio/contrib/aws/lambda_worker/otel.py +++ b/temporalio/contrib/aws/lambda_worker/otel.py @@ -21,6 +21,7 @@ from temporalio.contrib.aws.lambda_worker._configure import LambdaWorkerConfig from temporalio.contrib.opentelemetry import ( OpenTelemetryPlugin, + ReplaySafeTracerProvider, _serverless, create_tracer_provider, ) @@ -28,6 +29,8 @@ logger = logging.getLogger(__name__) +_installed_tracer_provider: ReplaySafeTracerProvider | None = None + @dataclass class OtelOptions: @@ -64,6 +67,60 @@ def _resolve_endpoint(options: OtelOptions) -> str: return _serverless.resolve_endpoint(options.collector_endpoint) +def _ensure_tracer_provider(endpoint: str, service_name: str) -> None: + """Install the global replay-safe ``TracerProvider`` once per process. + + ``configure`` runs on every Lambda invocation, but OpenTelemetry only allows the global + provider to be set once and a warm container keeps the process alive. Later calls + reuse the installed provider instead of building (and leaking) a new span processor. + """ + global _installed_tracer_provider + if ( + _installed_tracer_provider is not None + and get_tracer_provider() is _installed_tracer_provider + ): + return + + resource = Resource.create({SERVICE_NAME: service_name}) + + # Try to use X-Ray ID generator if available. + try: + from opentelemetry.sdk.extension.aws.trace import ( # type: ignore[reportMissingTypeStubs] + AwsXRayIdGenerator, + ) + + tracer_provider = create_tracer_provider( + resource=resource, id_generator=AwsXRayIdGenerator() + ) + except ImportError: + logger.warning( + "opentelemetry-sdk-extension-aws is not installed; " + "X-Ray trace ID generation is disabled. " + "Install the 'lambda-worker-otel' extra for full ADOT support." + ) + tracer_provider = create_tracer_provider(resource=resource) + + # Use OTLP gRPC exporter if available, otherwise skip trace export. + try: + tracer_provider.add_span_processor( + _serverless.build_otlp_span_processor(endpoint, insecure=True) + ) + except ImportError: + logger.warning( + "opentelemetry-exporter-otlp-proto-grpc is not installed; " + "traces will not be exported to the OTLP collector. " + "Install the 'lambda-worker-otel' extra for full ADOT support." + ) + + # Set as global so the OpenTelemetryPlugin picks it up. + set_tracer_provider(tracer_provider) + if get_tracer_provider() is tracer_provider: + _installed_tracer_provider = tracer_provider + else: + # Another provider is already global; ours is unused, so don't leak its exporter. + tracer_provider.shutdown() + + def apply_defaults( config: LambdaWorkerConfig, options: OtelOptions | None = None, @@ -78,7 +135,8 @@ def apply_defaults( Creates a replay-safe ``TracerProvider`` (with X-Ray ID generator and OTLP gRPC exporter if available) and sets it as the global OpenTelemetry tracer provider. The :py:class:`temporalio.contrib.opentelemetry.OpenTelemetryPlugin` uses the global provider, so - it must be set before the worker starts. + it must be set before the worker starts. The provider is created once per process: when this + is called again on a warm Lambda invocation, the installed provider is reused. The collector endpoint defaults to ``http://localhost:4317``, which is the endpoint expected by the ADOT collector Lambda layer. @@ -108,39 +166,7 @@ def apply_defaults( runtime = Runtime(telemetry=telemetry_config) config.client_connect_config["runtime"] = runtime - resource = Resource.create({SERVICE_NAME: service_name}) - - # Try to use X-Ray ID generator if available. - try: - from opentelemetry.sdk.extension.aws.trace import ( # type: ignore[reportMissingTypeStubs] - AwsXRayIdGenerator, - ) - - tracer_provider = create_tracer_provider( - resource=resource, id_generator=AwsXRayIdGenerator() - ) - except ImportError: - logger.warning( - "opentelemetry-sdk-extension-aws is not installed; " - "X-Ray trace ID generation is disabled. " - "Install the 'lambda-worker-otel' extra for full ADOT support." - ) - tracer_provider = create_tracer_provider(resource=resource) - - # Use OTLP gRPC exporter if available, otherwise skip trace export. - try: - tracer_provider.add_span_processor( - _serverless.build_otlp_span_processor(endpoint, insecure=True) - ) - except ImportError: - logger.warning( - "opentelemetry-exporter-otlp-proto-grpc is not installed; " - "traces will not be exported to the OTLP collector. " - "Install the 'lambda-worker-otel' extra for full ADOT support." - ) - - # Set as global so the OpenTelemetryPlugin picks it up. - set_tracer_provider(tracer_provider) + _ensure_tracer_provider(endpoint, service_name) apply_tracing(config) diff --git a/temporalio/contrib/aws/s3driver/README.md b/temporalio/contrib/aws/s3driver/README.md index 1f319c6cfb..d4939a37e3 100644 --- a/temporalio/contrib/aws/s3driver/README.md +++ b/temporalio/contrib/aws/s3driver/README.md @@ -68,9 +68,10 @@ Activity key: v0/ns/{namespace}/at/{activity-type}/ai/{activity-id}/ri/{run-id}/d/{hash-algorithm}/{hex-digest} -Fallback key (used when no namespace, workflow, or activity information is available): +Key without a target, scoped to the namespace of the client or worker performing the operation +(`null` when it is unknown): - v0/d/{hash-algorithm}/{hex-digest} + v0/ns/{namespace}/d/{hash-algorithm}/{hex-digest} - Missing values (including a missing run ID) are encoded as the literal `null`. - An empty namespace on a workflow or activity target is written as `/ns/null`. diff --git a/temporalio/contrib/aws/s3driver/_driver.py b/temporalio/contrib/aws/s3driver/_driver.py index ea543ba3b8..d7a7ca9a6e 100644 --- a/temporalio/contrib/aws/s3driver/_driver.py +++ b/temporalio/contrib/aws/s3driver/_driver.py @@ -148,13 +148,14 @@ async def store( ``payloads``. Object keys exceeding 1,024 bytes fall back to a namespace-scoped hash - key. Empty namespaces on workflow and activity targets use ``"null"``. + key. Without a target, keys are scoped to the context's namespace. An + empty or missing namespace uses ``"null"``. """ # Build context segments from the target identity. context_segments = "" target = context.target - namespace = _percent_encode(target.namespace) if target is not None else None - namespace_segment = f"/ns/{namespace or 'null'}" if target is not None else "" + namespace = target.namespace if target is not None else context.namespace + namespace_segment = f"/ns/{_percent_encode(namespace) or 'null'}" if isinstance(target, StorageDriverWorkflowInfo): wf_type = _percent_encode(target.type) or "null" wf_id = _percent_encode(target.id) or "null" diff --git a/temporalio/contrib/gcp/gcsdriver/README.md b/temporalio/contrib/gcp/gcsdriver/README.md index 59d99814c7..3b1aa42f3c 100644 --- a/temporalio/contrib/gcp/gcsdriver/README.md +++ b/temporalio/contrib/gcp/gcsdriver/README.md @@ -64,10 +64,11 @@ namespace, available workflow or activity identifiers, and a SHA-256 hash: ```text v0/ns/{namespace}/wt/{workflow-type}/wi/{workflow-id}/ri/{run-id}/d/sha256/{hex-digest} v0/ns/{namespace}/at/{activity-type}/ai/{activity-id}/ri/{run-id}/d/sha256/{hex-digest} -v0/d/sha256/{hex-digest} +v0/ns/{namespace}/d/sha256/{hex-digest} ``` -The last form is used when no target is available. Empty or missing fields use +The last form is used when no target is available, with the namespace of the +client or worker performing the operation. Empty or missing fields use `null`, including an empty namespace on a workflow or activity target. Names preserve Unicode and escape characters that interfere with [GCS tools](https://cloud.google.com/storage/docs/objects#naming), including `/` diff --git a/temporalio/contrib/gcp/gcsdriver/_driver.py b/temporalio/contrib/gcp/gcsdriver/_driver.py index e23c1dc7dc..523b1c3e20 100644 --- a/temporalio/contrib/gcp/gcsdriver/_driver.py +++ b/temporalio/contrib/gcp/gcsdriver/_driver.py @@ -148,11 +148,14 @@ async def store( Python value may serialize differently across payload converter versions (e.g. proto binary). The returned list is the same length as ``payloads``. + + Without a target, object names are scoped to the context's namespace. An + empty or missing namespace uses ``"null"``. """ context_segments = "" target = context.target - namespace = _percent_encode(target.namespace) if target is not None else None - namespace_segment = f"/ns/{namespace or 'null'}" if target is not None else "" + namespace = target.namespace if target is not None else context.namespace + namespace_segment = f"/ns/{_percent_encode(namespace) or 'null'}" if isinstance(target, StorageDriverWorkflowInfo): wf_type = _percent_encode(target.type) or "null" wf_id = _percent_encode(target.id) or "null" diff --git a/temporalio/converter/_data_converter.py b/temporalio/converter/_data_converter.py index 663c4b079f..4985c5b7d6 100644 --- a/temporalio/converter/_data_converter.py +++ b/temporalio/converter/_data_converter.py @@ -423,10 +423,11 @@ async def _decode_payload_sequence( decoded_payloads = await self.payload_codec.decode(decoded_payloads) return decoded_payloads - # Temporary shortcircuit detection while the _decode_* methods may no-op if - # a payload codec is not configured. Remove once those paths have more to them. + # Without a codec or external storage, the payload sequence methods only reject + # external storage references, so workers skip the passes that cannot change a + # payload and the per-command context lookups. @property - def _decode_payload_has_effect(self) -> bool: + def _has_codec_or_external_storage(self) -> bool: return self.payload_codec is not None or self.external_storage is not None diff --git a/temporalio/converter/_extstore.py b/temporalio/converter/_extstore.py index 5729aec0d9..19a5d7a72d 100644 --- a/temporalio/converter/_extstore.py +++ b/temporalio/converter/_extstore.py @@ -197,6 +197,14 @@ class StorageDriverStoreContext: exists the current execution context (workflow or activity) is used as the target instead.""" + namespace: str | None = None + """The namespace of the client or worker performing the operation. + + It is set even when :attr:`target` is ``None``, and is ``None`` only when + external storage is used outside a client or worker. A driver choosing a + storage layout should prefer the target's namespace when a target is + present.""" + @dataclass(frozen=True) class StorageDriverSelectContext: @@ -215,6 +223,14 @@ class StorageDriverSelectContext: exists the current execution context (workflow or activity) is used as the target instead.""" + namespace: str | None = None + """The namespace of the client or worker performing the operation. + + It is set even when :attr:`target` is ``None``, and is ``None`` only when + external storage is used outside a client or worker. A driver choosing a + storage layout should prefer the target's namespace when a target is + present.""" + @dataclass(frozen=True) class StorageDriverRetrieveContext: @@ -420,7 +436,9 @@ def _with_store_context(self, ctx: StorageDriverStoreContext) -> ExternalStorage result = dataclasses.replace(self) object.__setattr__(result, "_store_context", ctx) object.__setattr__( - result, "_select_context", StorageDriverSelectContext(target=ctx.target) + result, + "_select_context", + StorageDriverSelectContext(target=ctx.target, namespace=ctx.namespace), ) return result diff --git a/temporalio/runtime.py b/temporalio/runtime.py index d20b44ede6..e808f3dbfa 100644 --- a/temporalio/runtime.py +++ b/temporalio/runtime.py @@ -64,9 +64,13 @@ class Runtime: :py:meth:`set_default`. Every time a new runtime is created, a new internal thread pool is created. - Runtimes do not work across forks. Advanced users should consider using - :py:meth:`prevent_default` and :py:meth:`set_default` to ensure each - fork creates it's own runtime. + .. warning:: + Create a separate runtime in each process after forking. Creating a + runtime before forking can retain inherited native memory and file + descriptors in the child until it exits, even after the inherited + runtime is garbage collected. Use :py:meth:`prevent_default` and + :py:meth:`set_default` to control when each process creates its default + runtime. """ diff --git a/temporalio/service.py b/temporalio/service.py index e20c503286..afcb8fb5b9 100644 --- a/temporalio/service.py +++ b/temporalio/service.py @@ -24,7 +24,7 @@ import temporalio.runtime from temporalio.bridge.client import RPCError as BridgeRPCError -__version__ = "1.35.0" +__version__ = "1.36.1" ServiceRequest = TypeVar("ServiceRequest", bound=google.protobuf.message.Message) ServiceResponse = TypeVar("ServiceResponse", bound=google.protobuf.message.Message) diff --git a/temporalio/worker/_activity.py b/temporalio/worker/_activity.py index 2af18dc5fa..79af99070a 100644 --- a/temporalio/worker/_activity.py +++ b/temporalio/worker/_activity.py @@ -276,7 +276,9 @@ async def _send_latest_heartbeat( if details is None: return - data_converter = self._data_converter + data_converter = self._data_converter._with_store_context( + StorageDriverStoreContext(namespace=self._client.namespace) + ) if activity.info: # The server puts a standalone activity's last heartbeat details into its timeout # failure, which goes back to the Nexus caller if a Nexus handler started it @@ -295,6 +297,7 @@ async def _send_latest_heartbeat( data_converter = data_converter._with_contexts( context, StorageDriverStoreContext( + namespace=self._client.namespace, target=StorageDriverActivityInfo( id=activity.info.activity_id, type=activity.info.activity_type, @@ -378,7 +381,10 @@ async def _handle_start_activity_task( namespace=ns, ) data_converter = self._data_converter._with_contexts( - context, StorageDriverStoreContext(target=store_target) + context, + StorageDriverStoreContext( + namespace=self._client.namespace, target=store_target + ), ) # A standalone activity started by a Nexus operation handler returns its result and # failure to the Nexus caller, which decodes them with the handler's Nexus context. The @@ -388,7 +394,10 @@ async def _handle_start_activity_task( ) caller_facing_data_converter = ( self._data_converter._with_contexts( - nexus_context, StorageDriverStoreContext(target=store_target) + nexus_context, + StorageDriverStoreContext( + namespace=self._client.namespace, target=store_target + ), ) if nexus_context else data_converter diff --git a/temporalio/worker/_nexus.py b/temporalio/worker/_nexus.py index 551fee6047..e53efba5ab 100644 --- a/temporalio/worker/_nexus.py +++ b/temporalio/worker/_nexus.py @@ -253,12 +253,13 @@ async def _encode_completion( def _data_converter_for_nexus_task( self, endpoint: str, service: str, operation: str ) -> temporalio.converter.DataConverter: - return self._data_converter.with_context( + return self._data_converter._with_contexts( temporalio.converter.NexusSerializationContext( endpoint=endpoint, service=service, operation=operation, - ) + ), + temporalio.converter.StorageDriverStoreContext(namespace=self._namespace), ) # TODO(nexus-preview): stack trace pruning. See sdk-typescript NexusHandler.execute diff --git a/temporalio/worker/_workflow.py b/temporalio/worker/_workflow.py index 64c8a323b3..c82c900ec5 100644 --- a/temporalio/worker/_workflow.py +++ b/temporalio/worker/_workflow.py @@ -99,6 +99,12 @@ def _take_nexus_previous_run_outcome( return outcome +async def _wait_until_done(future: asyncio.Future, timeout: float | None) -> bool: + """Wait for completion without cancelling the future or retrieving its result.""" + done, _ = await asyncio.wait((future,), timeout=timeout) + return bool(done) + + class _WorkflowWorker: # type:ignore[reportUnusedClass] def __init__( self, @@ -387,6 +393,7 @@ async def _handle_activation( data_converter = self._data_converter._with_contexts( workflow_context, StorageDriverStoreContext( + namespace=self._namespace, target=StorageDriverWorkflowInfo( id=workflow_id, run_id=act.run_id, @@ -400,12 +407,20 @@ async def _handle_activation( ), ) if workflow: - data_converter = _CommandAwareDataConverter.create( - instance=workflow.instance, - context_free_dc=self._data_converter, - workflow_context_dc=data_converter, - workflow_context=workflow_context, - ) + # Resolving a command's context calls into the workflow instance + # (the sandbox, when sandboxed) for every payload sequence, and only + # a codec or external storage can use it. + if data_converter._has_codec_or_external_storage: + data_converter = _CommandAwareDataConverter.create( + instance=workflow.instance, + context_free_dc=self._data_converter, + workflow_context_dc=data_converter, + workflow_context=workflow_context, + ) + else: + # Activation failures are converted with this converter, and + # the command-aware one has no context there. + data_converter = self._data_converter previous_run_outcome = ( _take_nexus_previous_run_outcome(init_job) if not workflow and init_job @@ -436,35 +451,41 @@ async def _handle_activation( asyncio.get_running_loop(), workflow, act ) else: - # Run activation in separate thread so we can check if it's - # deadlocked - activate_task = asyncio.get_running_loop().run_in_executor( - self._workflow_task_executor, - workflow.activate, - act, + # Submit the activation job to the executor to create a future. + activation_job = self._workflow_task_executor.submit( + workflow.activate, act ) - # Run activation task with deadlock timeout + # Wrap the future in a asyncio.Future so the current loop can await it + activation_future = asyncio.wrap_future(activation_job) try: - completion = await asyncio.wait_for( - activate_task, self._deadlock_timeout_seconds + completed = await _wait_until_done( + activation_future, self._deadlock_timeout_seconds ) - except asyncio.TimeoutError: - # Need to create the deadlock exception up here so it - # captures the trace now instead of later after we may have - # interrupted it + except asyncio.CancelledError: + # If wait is cancelled, manually forward to future + activation_future.cancel() + raise + + if not completed: + # Cancel only work the executor hasn't started. If it has + # started, keep its wrapper awaitable for safe eviction. + + # Cancel the activation job future, False indicates it cannot be canceled + cancelled_before_start = activation_job.cancel() deadlock_exc = _DeadlockError.from_deadlocked_workflow( - workflow.instance, self._deadlock_timeout_seconds + None if cancelled_before_start else workflow.instance, + self._deadlock_timeout_seconds, ) - # When we deadlock, we will raise an exception to fail - # the task. But before we do that, we want to try to - # interrupt the thread and put this activation task on - # the workflow so that the successive eviction can wait - # on it before trying to evict. - workflow.attempt_deadlock_interruption() - # Set the task and raise - workflow.deadlocked_activation_task = activate_task - raise deadlock_exc from None + # if we weren't able to cancel the activation job, it is either running + # or finished. attempt_deadlock_interruption accounts for both scenarios + if not cancelled_before_start: + workflow.deadlocked_activation_task = activation_future + workflow.attempt_deadlock_interruption() + raise deadlock_exc + + # If all went well the activation job's result is threaded to the task's result + completion = activation_future.result() except Exception as err: if isinstance(err, _DeadlockError): @@ -516,7 +537,7 @@ async def _handle_activation( completion.run_id = act.run_id # Encode completion - if workflow: + if workflow and self._data_converter._has_codec_or_external_storage: workflow_context = temporalio.converter.WorkflowSerializationContext( namespace=self._namespace, workflow_id=workflow.workflow_id, @@ -601,12 +622,10 @@ async def _handle_cache_eviction( # eviction complete successfully because this is the only way we can # confirm the event loop was torn down gracefully and therefore no # GC'ing of the tasks occurs (which can cause them to wake up in - # different threads). We will wait deadlock timeout amount (2s if - # enabled) before making it clear to users that eviction is being - # swallowed. Any error or timeout of eviction causes us to retry - # forever because something in users code is preventing eviction. + # different threads). Log if teardown times out, but keep waiting + # for the same call. Retry only if the call fails. seen_fail = False - handle_eviction_task: asyncio.Future | None = None + eviction_future: asyncio.Future | None = None while True: try: if self._debug_mode: @@ -614,22 +633,24 @@ async def _handle_cache_eviction( asyncio.get_running_loop(), workflow, act ) else: - # We only create the eviction task if we haven't already or - # it is done. This is because if it already is running and - # timed out, it's still running (and holding on to a - # thread). But if did complete running but failed with - # another error, we want to re-create the task. - if not handle_eviction_task or handle_eviction_task.done(): - handle_eviction_task = ( + if eviction_future is None: + eviction_future = ( asyncio.get_running_loop().run_in_executor( self._workflow_task_executor, workflow.activate, act, ) ) - await asyncio.wait_for( - handle_eviction_task, self._deadlock_timeout_seconds - ) + # Keep the call on timeout: it may still be running, or + # it may finish while we sleep before checking again. + if not await _wait_until_done( + eviction_future, self._deadlock_timeout_seconds + ): + raise asyncio.TimeoutError + try: + eviction_future.result() + finally: + eviction_future = None # Break if it succeeds break except BaseException as err: @@ -641,8 +662,9 @@ async def _handle_cache_eviction( # exception if isinstance(err, asyncio.TimeoutError): logger.error( - "Timed out running eviction job for run ID %s, continually " - + "retrying eviction. This is usually caused by inadvertently " + "Timed out running eviction job for run ID %s. " + + "Waiting for the eviction call to finish before retrying. " + + "This is usually caused by inadvertently " + "catching 'BaseException's like asyncio.CancelledError or " + "_WorkflowBeingEvictedError and still continuing work. " + "Since eviction could not be processed, this worker " @@ -866,9 +888,11 @@ def swap_traceback(self) -> None: self._new_tb = None @classmethod - def from_deadlocked_workflow(cls, workflow: WorkflowInstance, timeout: int | None): + def from_deadlocked_workflow( + cls, workflow: WorkflowInstance | None, timeout: int | None + ): msg = f"[TMPRL1101] Potential deadlock detected: workflow didn't yield within {timeout} second(s)." - tid = workflow.get_thread_id() + tid = workflow.get_thread_id() if workflow is not None else None if not tid: return cls(msg) diff --git a/temporalio/worker/_workflow_instance.py b/temporalio/worker/_workflow_instance.py index 2dd0d50eaf..bf7c6a4273 100644 --- a/temporalio/worker/_workflow_instance.py +++ b/temporalio/worker/_workflow_instance.py @@ -587,6 +587,11 @@ def activate( self._versioning_behavior.value ) + if self._deleting: + # An interrupt while a finished task schedules its done callbacks + # can prevent its removal. It has no coroutine left to tear down. + self._tasks.difference_update([t for t in self._tasks if t.done()]) + # If we're deleting, there better be no more tasks. It is important for # the integrity of the system that we check this. If there are tasks # remaining, they and any associated coroutines will get garbage @@ -2635,7 +2640,9 @@ def get_external_store_context( ) if command_info is None: - return StorageDriverStoreContext(target=current_wf) + return StorageDriverStoreContext( + namespace=self._info.namespace, target=current_wf + ) COMMAND_TYPE = temporalio.api.enums.v1.command_type_pb2.CommandType @@ -2646,6 +2653,7 @@ def get_external_store_context( ): child = self._pending_child_workflows[command_info.command_seq] return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=child._input.id, type=child._input.workflow, @@ -2660,6 +2668,7 @@ def get_external_store_context( ): _, target_id = self._pending_external_signals[command_info.command_seq] return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=target_id, namespace=self._info.namespace ), @@ -2672,6 +2681,7 @@ def get_external_store_context( and self._info.continued_run_id is None ): return StorageDriverStoreContext( + namespace=self._info.namespace, target=StorageDriverWorkflowInfo( id=self._info.parent.workflow_id, run_id=self._info.parent.run_id, @@ -2680,7 +2690,9 @@ def get_external_store_context( ) else: - return StorageDriverStoreContext(target=current_wf) + return StorageDriverStoreContext( + namespace=self._info.namespace, target=current_wf + ) def _instantiate_workflow_object(self) -> Any: if not self._workflow_input: @@ -2840,7 +2852,7 @@ def _register_task( # Add to and remove from our own non-weak set instead of relying on # Python's weak set which can collect these too early self._tasks.add(task) - task.add_done_callback(self._tasks.remove) + task.add_done_callback(self._tasks.discard) # When the workflow is GC'd (for whatever reason, e.g. eviction or # worker shutdown), still-open tasks get a message logged to the # exception handler about still pending. We disable this if the @@ -4256,6 +4268,4 @@ class _WorkflowLogicFlag(IntEnum): PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH = 2 -_DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS: frozenset[_WorkflowLogicFlag] = frozenset( - {_WorkflowLogicFlag.PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH} -) +_DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS: frozenset[_WorkflowLogicFlag] = frozenset() diff --git a/temporalio/worker/workflow_sandbox/_importer.py b/temporalio/worker/workflow_sandbox/_importer.py index e31202a401..08af33a31b 100644 --- a/temporalio/worker/workflow_sandbox/_importer.py +++ b/temporalio/worker/workflow_sandbox/_importer.py @@ -244,9 +244,9 @@ def _import( f"Module {full_name} was imported after initial workflow load." ) - # If the module is __temporal_main__ and not already in sys.modules, - # we load it from whatever file __main__ was originally in - if full_name == "__temporal_main__": + # If the module is __temporal_main__ and was not passed through, we + # load it from whatever file __main__ was originally in + if full_name == "__temporal_main__" and not passthrough_mod: orig_mod = _thread_local_sys_modules.orig["__main__"] new_spec = importlib.util.spec_from_file_location( full_name, orig_mod.__file__ @@ -265,6 +265,9 @@ def _import( mod = _loaded_module_for_import(full_name, fromlist, level) if mod is None: + package = sys.modules.get(full_name) if fromlist else None + if package is not None and hasattr(package, "__path__"): + self._pass_through_fromlist_submodules(package, fromlist) mod = importlib.__import__(name, globals, locals, fromlist, level) # Check for restrictions if necessary and apply if mod.__name__ not in self.modules_checked_for_restrictions: @@ -276,6 +279,31 @@ def _import( return mod + def _pass_through_fromlist_submodules( + self, + package: types.ModuleType, + fromlist: Sequence[str], + recursive: bool = False, + ) -> None: + # importlib imports a package's fromlist submodules with its own import + # function, so they never reach the passthrough handling in _import. + for item in fromlist: + if item == "*": + if not recursive and hasattr(package, "__all__"): + self._pass_through_fromlist_submodules( + package, package.__all__, recursive=True + ) + elif not hasattr(package, item): + submodule = f"{package.__name__}.{item}" + if self._is_passed_through(submodule): + try: + self.import_func(submodule) + except ModuleNotFoundError as err: + # Like importlib, leave an item that is not a module + # for the from import to reject + if err.name != submodule: + raise + def _assert_valid_module(self, name: str) -> None: if ( self.restrictions.invalid_modules.match_access( @@ -313,13 +341,16 @@ def _is_import_notification_policy_applied( return policy in self.restrictions.import_notification_policy + def _is_passed_through(self, name: str) -> bool: + return ( + temporalio.workflow.unsafe.is_imports_passed_through() + or self.module_configured_passthrough(name) + ) + def _maybe_passthrough_module(self, name: str) -> types.ModuleType | None: # If imports not passed through and all modules are not passed through # and name not in passthrough modules, check parents - if ( - not temporalio.workflow.unsafe.is_imports_passed_through() - and not self.module_configured_passthrough(name) - ): + if not self._is_passed_through(name): # Workflow modules are intentionally reloaded to isolate their state. if name == self._workflow_module_name: return None @@ -341,9 +372,12 @@ def _maybe_passthrough_module(self, name: str) -> types.ModuleType | None: _trace("Passing module %s through from host", name) global _trace_depth _trace_depth += 1 - # Use our import outside of the sandbox + # Use our import outside of the sandbox. The host has no module + # named __temporal_main__, its counterpart is __main__. try: - return importlib.import_module(name) + return importlib.import_module( + "__main__" if name == "__temporal_main__" else name + ) finally: _trace_depth -= 1 diff --git a/temporalio/worker/workflow_sandbox/_restrictions.py b/temporalio/worker/workflow_sandbox/_restrictions.py index f2c0fcfc06..606a17d8cb 100644 --- a/temporalio/worker/workflow_sandbox/_restrictions.py +++ b/temporalio/worker/workflow_sandbox/_restrictions.py @@ -574,6 +574,17 @@ def _public_callables(parent: Any, *, exclude: set[str] = set()) -> set[str]: ), "asyncio": SandboxMatcher( children={ + "TaskGroup": SandboxMatcher( + children={ + "__call__": SandboxMatcher( + match_self=True, + leaf_warning=UserWarning, + leaf_message=( + "asyncio.TaskGroup() has non-deterministic task cancellation order" + ), + ) + }, + ), "as_completed": SandboxMatcher( children={ "__call__": SandboxMatcher( diff --git a/temporalio/worker/workflow_sandbox/_runner.py b/temporalio/worker/workflow_sandbox/_runner.py index 9716520b31..74cdaf8f32 100644 --- a/temporalio/worker/workflow_sandbox/_runner.py +++ b/temporalio/worker/workflow_sandbox/_runner.py @@ -234,7 +234,10 @@ def get_external_store_context( __temporal_command_info=command_info, ) return self.globals_and_locals.pop( - "__temporal_context", StorageDriverStoreContext(target=None) + "__temporal_context", + StorageDriverStoreContext( + namespace=self.instance_details.info.namespace + ), ) # type: ignore finally: self.importer.restriction_context.is_runtime = False diff --git a/tests/bridge/runtime_shutdown.py b/tests/bridge/runtime_shutdown.py new file mode 100644 index 0000000000..c7d92dd5ae --- /dev/null +++ b/tests/bridge/runtime_shutdown.py @@ -0,0 +1,33 @@ +"""Exercise native callbacks during a real interpreter shutdown.""" + +import asyncio +import atexit +import pickle +import sys +import threading + +if __name__ == "__main__": + release = threading.Event() + completed: list[bool] = [] + atexit.register(lambda: print("completed callbacks:", len(completed))) + + # Import the bridge after registering the observer so that its shutdown + # hook runs before the observer. Callbacks live in the helper module so + # their globals do not keep this script's runtimes alive. + import runtime_shutdown_helpers # type: ignore[reportImplicitRelativeImport] + + # Release the callbacks before the bridge waits for them. + atexit.register(release.set) + + if sys.argv[1] == "client": + connect_config, namespace = pickle.load(sys.stdin.buffer) + asyncio.run( + runtime_shutdown_helpers.run_client( + connect_config, namespace, release, completed + ) + ) + else: + runtimes = [ + runtime_shutdown_helpers.start_runtime(release, completed) + for _ in range(int(sys.argv[1])) + ] diff --git a/tests/bridge/runtime_shutdown_helpers.py b/tests/bridge/runtime_shutdown_helpers.py new file mode 100644 index 0000000000..4441263f6e --- /dev/null +++ b/tests/bridge/runtime_shutdown_helpers.py @@ -0,0 +1,73 @@ +"""Native callbacks for the interpreter shutdown subprocess.""" + +import asyncio +import threading +from collections.abc import Callable, Sequence +from contextvars import Context +from typing import Any +from unittest.mock import patch + +import temporalio.api.workflowservice.v1 +import temporalio.bridge.runtime +import temporalio.client +import temporalio.service + + +def start_runtime( + release: threading.Event, completed: list[bool] +) -> temporalio.bridge.runtime.Runtime: + started = threading.Event() + + def forward_logs( + _entries: Sequence[temporalio.bridge.runtime.BufferedLogEntry], + ) -> None: + started.set() + assert release.wait(10) + completed.append(True) + + runtime = temporalio.bridge.runtime.Runtime( + options=temporalio.bridge.runtime.RuntimeOptions( + telemetry=temporalio.bridge.runtime.TelemetryConfig( + logging=temporalio.bridge.runtime.LoggingConfig( + filter="INFO", forward_to=forward_logs, format=None + ), + metrics=None, + ) + ) + ) + runtime.write_test_info_log("before interpreter shutdown", "") + assert started.wait(10) + return runtime + + +async def run_client( + connect_config: temporalio.service.ConnectConfig, + namespace: str, + release: threading.Event, + completed: list[bool], +) -> None: + client = await temporalio.client.Client.connect( + namespace=namespace, **vars(connect_config) + ) + started = threading.Event() + loop = asyncio.get_running_loop() + original_call_soon = loop.call_soon_threadsafe + + def call_soon( + callback: Callable[..., Any], *args: Any, context: Context | None = None + ) -> asyncio.Handle: + result = original_call_soon(callback, *args, context=context) + started.set() + assert release.wait(10) + completed.append(True) + return result + + # Let Python receive the RPC result while the Rust completion callback + # is still active, reproducing the interpreter shutdown race. + with patch.object(loop, "call_soon_threadsafe", call_soon): + await client.workflow_service.describe_namespace( + temporalio.api.workflowservice.v1.DescribeNamespaceRequest( + namespace=client.namespace + ) + ) + assert started.wait(10) diff --git a/tests/bridge/test_runtime.py b/tests/bridge/test_runtime.py index 2a1c48834b..9106dca699 100644 --- a/tests/bridge/test_runtime.py +++ b/tests/bridge/test_runtime.py @@ -1,6 +1,11 @@ +import subprocess +import sys +from pathlib import Path from threading import Event, Thread from time import sleep +import pytest + from temporalio.bridge.runtime import Runtime @@ -8,6 +13,25 @@ class SomeException(Exception): pass +@pytest.mark.parametrize("runtime_count", [1, 3]) +def test_bridge_runtime_shutdown_before_finalization(runtime_count: int): + result = subprocess.run( + [ + sys.executable, + "-X", + "faulthandler", + str(Path(__file__).with_name("runtime_shutdown.py")), + str(runtime_count), + ], + capture_output=True, + text=True, + timeout=30, + ) + assert result.returncode == 0, result.stderr + assert result.stdout.strip() == f"completed callbacks: {runtime_count}" + assert result.stderr == "" + + def test_bridge_runtime_raise_in_thread(): waiting = Event() exc_in_thread: BaseException | None = None diff --git a/tests/contrib/aws/lambda_worker/test_lambda_worker.py b/tests/contrib/aws/lambda_worker/test_lambda_worker.py index 9d2ec78a7a..897ec17bdb 100644 --- a/tests/contrib/aws/lambda_worker/test_lambda_worker.py +++ b/tests/contrib/aws/lambda_worker/test_lambda_worker.py @@ -2,8 +2,10 @@ from __future__ import annotations +import asyncio import dataclasses import itertools +from collections.abc import Awaitable, Callable from contextlib import asynccontextmanager from datetime import timedelta from pathlib import Path @@ -258,6 +260,61 @@ def fake_create_worker(_client: Any, **kwargs: Any) -> Any: ) +async def _connect_fails(**_kwargs: Any) -> Any: + raise RuntimeError("cannot connect") + + +def _create_worker_fails(_client: Any, **_kwargs: Any) -> Any: + raise ValueError("bad worker config") + + +async def _run_fails() -> None: + raise RuntimeError("worker boom") + + +async def _run_cancelled() -> None: + raise asyncio.CancelledError() + + +def _create_worker_running(run: Callable[[], Awaitable[None]]) -> Callable[..., Any]: + """A create_worker whose worker runs *run* instead of returning right away.""" + worker = MagicMock() + worker.run = run + return lambda _client, **_kwargs: worker + + +def _invoke( + handler: Callable[[Any, Any], None], error: type[BaseException] | None +) -> None: + """Invoke *handler* once, expecting it to raise *error* if one is given.""" + if error is None: + handler({}, _make_lambda_context()) + else: + with pytest.raises(error): + handler({}, _make_lambda_context()) + + +# (deps overrides, expected exception) for each way an invocation can end. +_INVOCATION_ENDINGS = [ + pytest.param({}, None, id="success"), + pytest.param({"getenv": lambda _: None}, ValueError, id="task-queue-error"), + pytest.param({"connect": _connect_fails}, RuntimeError, id="connect-error"), + pytest.param( + {"create_worker": _create_worker_fails}, ValueError, id="create-worker-error" + ), + pytest.param( + {"create_worker": _create_worker_running(_run_fails)}, + RuntimeError, + id="worker-error", + ), + pytest.param( + {"create_worker": _create_worker_running(_run_cancelled)}, + asyncio.CancelledError, + id="cancelled", + ), +] + + class TestRunWorkerInternal: def test_returns_handler(self) -> None: deps = _make_test_deps() @@ -435,6 +492,77 @@ def second() -> None: handler({}, _make_lambda_context()) assert second_called + @pytest.mark.parametrize(("overrides", "error"), _INVOCATION_ENDINGS) + def test_shutdown_hooks_run_however_invocation_ends( + self, overrides: dict[str, Any], error: type[BaseException] | None + ) -> None: + deps = dataclasses.replace(_make_test_deps(), **overrides) + hook_calls = 0 + + def configure(config: LambdaWorkerConfig) -> None: + def hook() -> None: + nonlocal hook_calls + hook_calls += 1 + + config.shutdown_hooks.append(hook) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + _invoke(handler, error) + assert hook_calls == 1 + + def test_shutdown_hook_error_keeps_invocation_failure(self) -> None: + deps = dataclasses.replace( + _make_test_deps(), create_worker=_create_worker_running(_run_fails) + ) + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + def failing() -> None: + raise RuntimeError("flush failed") + + config.shutdown_hooks.append(failing) + config.shutdown_hooks.append(lambda: order.append("second")) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + with pytest.raises(RuntimeError, match="worker boom"): + handler({}, _make_lambda_context()) + assert order == ["second"] + + def test_shutdown_hooks_run_when_deadline_is_too_short(self) -> None: + deps = _make_test_deps() + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + config.shutdown_deadline_buffer = timedelta(milliseconds=1500) + config.shutdown_hooks.append(lambda: order.append("hook")) + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + with pytest.raises(RuntimeError, match="Lambda timeout is too short"): + handler({}, _make_lambda_context(remaining_ms=2000)) + assert order == ["hook"] + + def test_shutdown_hooks_run_when_deadline_stops_worker(self) -> None: + """The usual end of an invocation: the worker is cancelled at the deadline.""" + + async def run_until_cancelled() -> None: + await asyncio.Event().wait() + + deps = dataclasses.replace( + _make_test_deps(), create_worker=_create_worker_running(run_until_cancelled) + ) + order: list[str] = [] + + def configure(config: LambdaWorkerConfig) -> None: + config.shutdown_deadline_buffer = timedelta(milliseconds=500) + config.shutdown_hooks.append(lambda: order.append("hook")) + + # The first reading passes the deadline check, the second leaves 50ms for work. + context = _make_lambda_context() + context.get_remaining_time_in_millis.side_effect = [2000, 550] + handler = _run_worker_internal(TEST_VERSION, configure, deps) + handler({}, context) + assert order == ["hook"] + def test_tight_deadline_raises_error(self) -> None: deps = _make_test_deps() @@ -610,6 +738,26 @@ async def configure(config: LambdaWorkerConfig): handler({}, _make_lambda_context()) assert torn_down + @pytest.mark.parametrize(("overrides", "error"), _INVOCATION_ENDINGS) + def test_async_generator_shutdown_hooks_run_before_teardown( + self, overrides: dict[str, Any], error: type[BaseException] | None + ) -> None: + """Shutdown hooks run before the post-yield teardown however the invocation ends, + so a hook can still use the resource the teardown closes.""" + deps = dataclasses.replace(_make_test_deps(), **overrides) + events: list[str] = [] + + async def configure(config: LambdaWorkerConfig): + config.shutdown_hooks.append(lambda: events.append("hook")) + try: + yield + finally: + events.append("teardown") + + handler = _run_worker_internal(TEST_VERSION, configure, deps) + _invoke(handler, error) + assert events == ["hook", "teardown"] + def test_async_generator_resource_per_invocation(self) -> None: """Each invocation builds and tears down its own resource instance. Tagging each resource with a construction sequence number proves the instances are distinct diff --git a/tests/contrib/aws/lambda_worker/test_otel.py b/tests/contrib/aws/lambda_worker/test_otel.py index 97f3d96471..3f7e6285f6 100644 --- a/tests/contrib/aws/lambda_worker/test_otel.py +++ b/tests/contrib/aws/lambda_worker/test_otel.py @@ -2,11 +2,23 @@ from __future__ import annotations +import threading +from collections.abc import Iterator, Sequence from datetime import timedelta +from typing import Any from unittest.mock import patch import pytest +from opentelemetry import trace +from opentelemetry.sdk.trace import ReadableSpan, TracerProvider +from opentelemetry.sdk.trace.export import ( + BatchSpanProcessor, + SpanExporter, + SpanExportResult, +) +from opentelemetry.util._once import Once +from temporalio.contrib.aws.lambda_worker import otel from temporalio.contrib.aws.lambda_worker._configure import ( LambdaWorkerConfig, _run_shutdown_hooks, @@ -149,6 +161,94 @@ def test_default_options_used_when_none(self) -> None: assert len(config.shutdown_hooks) == 1 +class _RecordingExporter(SpanExporter): + def __init__(self) -> None: + super().__init__() + self.exported: list[str] = [] + + def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult: + self.exported.extend(span.name for span in spans) + return SpanExportResult.SUCCESS + + +def _span_export_threads() -> int: + return sum( + 1 for t in threading.enumerate() if t.name == "OtelBatchSpanRecordProcessor" + ) + + +class TestApplyDefaultsWarmInvocations: + """``configure`` runs on every Lambda invocation in the same warm process.""" + + @pytest.fixture(autouse=True) + def exporters( + self, monkeypatch: pytest.MonkeyPatch + ) -> Iterator[list[_RecordingExporter]]: + """Isolate the global provider and record every span exporter that gets built.""" + # OpenTelemetry only allows the global provider to be set once per process. + exporters: list[_RecordingExporter] = [] + monkeypatch.setattr(trace, "_TRACER_PROVIDER", None) + monkeypatch.setattr(trace, "_TRACER_PROVIDER_SET_ONCE", Once()) + monkeypatch.setattr(otel, "_installed_tracer_provider", None, raising=False) + + def build_processor(*_args: Any, **_kwargs: Any) -> BatchSpanProcessor: + exporter = _RecordingExporter() + exporters.append(exporter) + return BatchSpanProcessor(exporter) + + monkeypatch.setattr( + otel._serverless, # type: ignore[reportPrivateUsage] + "build_otlp_span_processor", + build_processor, + ) + yield exporters + provider = trace.get_tracer_provider() + if isinstance(provider, TracerProvider): + provider.shutdown() + + def test_reuses_provider_across_invocations( + self, exporters: list[_RecordingExporter] + ) -> None: + baseline = _span_export_threads() + providers = [] + for _ in range(4): + apply_defaults(LambdaWorkerConfig()) + providers.append(trace.get_tracer_provider()) + assert len({id(p) for p in providers}) == 1 + assert len(exporters) == 1 + assert _span_export_threads() == baseline + 1 + + def test_does_not_warn_about_overriding_provider( + self, caplog: pytest.LogCaptureFixture + ) -> None: + apply_defaults(LambdaWorkerConfig()) + caplog.clear() + apply_defaults(LambdaWorkerConfig()) + assert "Overriding of current TracerProvider" not in caplog.text + + @pytest.mark.asyncio + async def test_flush_hook_exports_on_every_invocation( + self, exporters: list[_RecordingExporter] + ) -> None: + for invocation in range(3): + config = LambdaWorkerConfig() + apply_defaults(config) + tracer = trace.get_tracer("test") + with tracer.start_as_current_span(f"span-{invocation}"): + pass + await _run_shutdown_hooks(config) + assert exporters[0].exported == ["span-0", "span-1", "span-2"] + + def test_unused_provider_is_shut_down_when_global_already_set(self) -> None: + foreign = TracerProvider() + trace.set_tracer_provider(foreign) + baseline = _span_export_threads() + for _ in range(3): + apply_defaults(LambdaWorkerConfig()) + assert trace.get_tracer_provider() is foreign + assert _span_export_threads() == baseline + + class TestOtelOptions: def test_defaults(self) -> None: opts = OtelOptions() diff --git a/tests/contrib/aws/s3driver/test_s3driver.py b/tests/contrib/aws/s3driver/test_s3driver.py index b4a25de060..add26b3698 100644 --- a/tests/contrib/aws/s3driver/test_s3driver.py +++ b/tests/contrib/aws/s3driver/test_s3driver.py @@ -302,7 +302,60 @@ async def test_key_context_none(self, driver_client: S3StorageDriverClient) -> N payload = make_payload() [claim] = await driver.store(make_store_context(), [payload]) expected_hash = hashlib.sha256(payload.SerializeToString()).hexdigest() - assert claim.claim_data["key"] == f"v0/d/sha256/{expected_hash}" + assert claim.claim_data["key"] == f"v0/ns/null/d/sha256/{expected_hash}" + + @pytest.mark.parametrize( + "target,namespace,prefix", + [ + (None, "ambient /%", "v0/ns/ambient%20%2F%25"), + (None, None, "v0/ns/null"), + (None, "", "v0/ns/null"), + ( + StorageDriverWorkflowInfo(namespace="target"), + "ambient", + "v0/ns/target/wt", + ), + ( + StorageDriverActivityInfo(namespace="target"), + "ambient", + "v0/ns/target/at", + ), + (StorageDriverWorkflowInfo(namespace=""), "ambient", "v0/ns/null/wt"), + ], + ) + async def test_key_ambient_namespace( + self, + driver_client: S3StorageDriverClient, + target: StorageDriverWorkflowInfo | StorageDriverActivityInfo | None, + namespace: str | None, + prefix: str, + ) -> None: + driver = S3StorageDriver(client=driver_client, bucket=BUCKET) + payload = make_payload() + [claim] = await driver.store( + StorageDriverStoreContext(target=target, namespace=namespace), [payload] + ) + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + key = claim.claim_data["key"] + assert key.startswith(f"{prefix}/") + assert key.endswith(f"/d/sha256/{digest}") + if target is None: + assert key == f"{prefix}/d/sha256/{digest}" + assert await driver.retrieve(StorageDriverRetrieveContext(), [claim]) == [ + payload + ] + + async def test_long_key_without_target_uses_ambient_namespace(self) -> None: + client = AsyncMock(spec=S3StorageDriverClient) + client.object_exists.return_value = False + driver = S3StorageDriver(client=client, bucket=BUCKET) + payload = make_payload() + digest = hashlib.sha256(payload.SerializeToString()).hexdigest() + namespace = "x" * 1024 + [claim] = await driver.store( + StorageDriverStoreContext(namespace=namespace), [payload] + ) + assert claim.claim_data["key"] == f"v0/ns/{namespace}/d/sha256/{digest}" async def test_key_context_workflow( self, driver_client: S3StorageDriverClient @@ -830,7 +883,7 @@ async def test_store_nonexistent_bucket_raises( payload = make_payload() driver = S3StorageDriver(client=driver_client, bucket=bucket) expected_hash = hashlib.sha256(payload.SerializeToString()).hexdigest() - expected_key = f"v0/d/sha256/{expected_hash}" + expected_key = f"v0/ns/null/d/sha256/{expected_hash}" with pytest.raises(RuntimeError) as exc_info: await driver.store(make_store_context(), [payload]) assert ( diff --git a/tests/contrib/gcp/gcsdriver/test_gcsdriver.py b/tests/contrib/gcp/gcsdriver/test_gcsdriver.py index 867aba008f..a8b2bea3ec 100644 --- a/tests/contrib/gcp/gcsdriver/test_gcsdriver.py +++ b/tests/contrib/gcp/gcsdriver/test_gcsdriver.py @@ -62,7 +62,7 @@ def test_configuration(client: MemoryClient) -> None: @pytest.mark.parametrize( "target,prefix", [ - (None, "v0"), + (None, "v0/ns/null"), ( StorageDriverWorkflowInfo(namespace=""), "v0/ns/null/wt/null/wi/null/ri/null", @@ -109,6 +109,47 @@ async def test_object_names( } +@pytest.mark.parametrize( + "target,namespace,prefix", + [ + (None, "ambient /%", "v0/ns/ambient %2F%25"), + (None, None, "v0/ns/null"), + (None, "", "v0/ns/null"), + (StorageDriverWorkflowInfo(namespace="target"), "ambient", "v0/ns/target/wt"), + (StorageDriverActivityInfo(namespace="target"), "ambient", "v0/ns/target/at"), + (StorageDriverWorkflowInfo(namespace=""), "ambient", "v0/ns/null/wt"), + ], +) +async def test_object_names_ambient_namespace( + client: MemoryClient, + target: StorageDriverWorkflowInfo | StorageDriverActivityInfo | None, + namespace: str | None, + prefix: str, +) -> None: + original = payload() + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext(target=target, namespace=namespace), [original] + ) + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + object_name = claim.claim_data["object_name"] + assert object_name.startswith(f"{prefix}/") + assert object_name.endswith(f"/d/sha256/{digest}") + if target is None: + assert object_name == f"{prefix}/d/sha256/{digest}" + + +async def test_long_object_name_without_target_uses_ambient_namespace( + client: MemoryClient, +) -> None: + original = payload() + digest = hashlib.sha256(original.SerializeToString()).hexdigest() + namespace = "日" * 400 + [claim] = await GCSStorageDriver(client, "bucket").store( + StorageDriverStoreContext(namespace=namespace), [original] + ) + assert claim.claim_data["object_name"] == f"v0/ns/{namespace}/d/sha256/{digest}" + + @pytest.mark.parametrize( "value,encoded", [ diff --git a/tests/contrib/opentelemetry/test_opentelemetry_plugin.py b/tests/contrib/opentelemetry/test_opentelemetry_plugin.py index 29cbde33d9..74d461904a 100644 --- a/tests/contrib/opentelemetry/test_opentelemetry_plugin.py +++ b/tests/contrib/opentelemetry/test_opentelemetry_plugin.py @@ -15,6 +15,7 @@ ) import temporalio.contrib.opentelemetry.workflow +import temporalio.worker._workflow_instance from temporalio import activity, nexus, workflow from temporalio.api.common.v1 import WorkflowExecution from temporalio.api.enums.v1 import EventType, ResetReapplyType @@ -838,12 +839,17 @@ async def test_otel_tracing_reset_reapplied_update_span_id( new_config["plugins"] = [OpenTelemetryPlugin(add_temporal_spans=True)] new_client = Client(**new_config) - async with new_worker( + worker = new_worker( new_client, ResetReapplyUpdateWorkflow, activities=[simple_no_context_activity], max_cached_workflows=0, - ) as worker: + ) + worker._set_default_workflow_logic_flag( + temporalio.worker._workflow_instance._WorkflowLogicFlag.PROCESS_WORKFLOW_ACTIVATION_JOBS_AS_SINGLE_BATCH, + enabled=True, + ) + async with worker: handle = await new_client.start_workflow( ResetReapplyUpdateWorkflow.run, id=f"otel-reset-{uuid.uuid4()}", diff --git a/tests/nexus/test_workflow_caller.py b/tests/nexus/test_workflow_caller.py index 10ca6c3986..deb303ccc7 100644 --- a/tests/nexus/test_workflow_caller.py +++ b/tests/nexus/test_workflow_caller.py @@ -1092,15 +1092,9 @@ async def test_sync_response( if op_definition_type == OpDefinitionType.SHORTHAND else "sync_or_async_operation" ) - elif request_cancel: - # The response was synchronous, so the result had already arrived when the - # workflow cancelled the handle. Single-batch activations keep that task - # cancellation instead of returning the completed result. See explanation - # below. - with pytest.raises(WorkflowFailureError) as ei: - await caller_wf_handle.result() - assert isinstance(ei.value.cause, CancelledError) else: + # Under the default legacy ordering, cancellation does not override + # an already-completed synchronous result. result = await caller_wf_handle.result() assert result.op_output.value == "sync response" @@ -1759,7 +1753,7 @@ async def assert_handler_workflow_has_link_to_caller_workflow( # awaited, because both resolve_nexus_operation_start and resolve_nexus_operation jobs # were sent in the same activation and hence the task's fut_waiter was already finished. # -# With single-batch activations (workflow logic flag 2, the default) the SDK re-raises +# With single-batch activations (workflow logic flag 2) the SDK re-raises # the task cancellation even though the result future is already done, so awaiting the # handle raises CancelledError in the sync case as well. # diff --git a/tests/test_extstore.py b/tests/test_extstore.py index daa0547f3d..0d763ef616 100644 --- a/tests/test_extstore.py +++ b/tests/test_extstore.py @@ -765,6 +765,27 @@ def selector(context: object, _payload: Payload) -> StorageDriver: assert isinstance(driver._store_contexts[0], StorageDriverStoreContext) assert driver._store_contexts[0].target == target + async def test_contexts_carry_namespace_without_target(self): + driver = InMemoryTestDriver("test-driver") + seen: list[StorageDriverSelectContext] = [] + + def selector( + context: StorageDriverSelectContext, _payload: Payload + ) -> StorageDriver: + seen.append(context) + return driver + + storage = ExternalStorage( + drivers=[driver], + driver_selector=selector, + payload_size_threshold=50, + )._with_store_context(StorageDriverStoreContext(namespace="ns")) + + await DataConverter(external_storage=storage).encode(["x" * 200]) + + assert seen == [StorageDriverSelectContext(namespace="ns")] + assert driver._store_contexts == [StorageDriverStoreContext(namespace="ns")] + async def test_selector_routes_payloads_to_different_drivers_in_single_batch(self): """When a selector routes different payloads to different drivers, a single encode([v1, v2, ...]) call batches payloads per driver so each diff --git a/tests/test_extstore_client.py b/tests/test_extstore_client.py index b8588b0649..d17563e547 100644 --- a/tests/test_extstore_client.py +++ b/tests/test_extstore_client.py @@ -34,6 +34,7 @@ DataConverter, ExternalStorage, JSONProtoPayloadConverter, + StorageDriverStoreContext, ) from temporalio.exceptions import ApplicationError from temporalio.service import ServiceClient @@ -244,6 +245,36 @@ async def test_create_schedule_encodes_action_input_reference() -> None: ) +async def test_create_schedule_stores_header_with_client_namespace() -> None: + service = _FakeWorkflowService( + {"create_schedule": temporalio.api.workflowservice.v1.CreateScheduleResponse()} + ) + driver = InMemoryTestDriver() + data_converter = DataConverter( + payload_codec=RecordingPayloadCodec(CODEC_ENCODING.decode()), + external_storage=ExternalStorage(drivers=[driver], payload_size_threshold=50), + ) + client = _client( + service, data_converter, header_codec_behavior=HeaderCodecBehavior.CODEC + ) + action = ScheduleActionStartWorkflow("Workflow", id="wf", task_queue="tq") + [header] = temporalio.converter.default().payload_converter.to_payloads([LARGE]) + action.headers = {"large": header} + + await client.create_schedule( + "schedule", Schedule(action=action, spec=ScheduleSpec()) + ) + + req = service.requests["create_schedule"] + await _assert_encoded_reference( + client.data_converter, + req.schedule.action.start_workflow.header.fields["large"], + ) + assert driver._store_contexts == [ + StorageDriverStoreContext(namespace="test-namespace") + ] + + async def test_async_activity_completion_encodes_references() -> None: service = _FakeWorkflowService( { diff --git a/tests/test_prepare_release.py b/tests/test_prepare_release.py index aa0b2ef376..6d65c68c0f 100644 --- a/tests/test_prepare_release.py +++ b/tests/test_prepare_release.py @@ -263,19 +263,185 @@ def test_replace_versions() -> None: ) -def test_create_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: - calls: list[list[str]] = [] +def test_release_with_core_update_commits_generated_files( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + mock_preparation(monkeypatch) + calls: list[str] = [] + core_fragment = release_repo / "changelog/fixed/core-llama.md" + generated = release_repo / "temporalio/api/generated.py" + manifest = release_repo / "temporalio/bridge/Cargo.toml" + + def branch(_root: pathlib.Path, _version: str) -> str: + calls.append("branch") + return "" + + def update(root: pathlib.Path, args: list[str]) -> None: + assert root == release_repo + assert args == ["--latest-tag"] + assert calls == ["branch"] + calls.append("core") + generated.parent.mkdir(parents=True) + generated.write_text("# Generated\n") + manifest.parent.mkdir(parents=True) + manifest.write_text("# Updated manifest\n") + core_fragment.write_text("Core: A fix.\n") + + def prepare(root: pathlib.Path, _version: str, _date: datetime.date) -> None: + assert calls == ["branch", "core"] + calls.append("release") + (root / "CHANGELOG.md").write_text("Release notes including Core.\n") + (root / "changelog/fixed/giggling-teapot.md").unlink() + core_fragment.unlink() + monkeypatch.setattr( - subprocess, "run", lambda command, **_kwargs: calls.append(command) + scripts.prepare_release, + "__file__", + str(release_repo / "scripts/prepare_release.py"), + ) + monkeypatch.setattr(scripts.prepare_release, "create_release_branch", branch) + monkeypatch.setattr(scripts.prepare_release, "update_core", update) + monkeypatch.setattr(scripts.prepare_release, "prepare_changelog", prepare) + monkeypatch.setattr( + scripts.prepare_release, + "push_release_branch", + lambda *_args: calls.append("push"), + ) + monkeypatch.setattr( + scripts.prepare_release, "create_release_pr", lambda *_args: calls.append("pr") + ) + subprocess.run(["git", "config", "user.name", "Test"], cwd=release_repo, check=True) + subprocess.run( + ["git", "config", "user.email", "test@example.com"], + cwd=release_repo, + check=True, + ) + scripts.prepare_release.main(["1.35.0", "--update-core", "--skip-lock"]) + assert calls == ["branch", "core", "release", "push", "pr"] + ensure_clean_worktree(release_repo) + assert generated.exists() + assert manifest.exists() + assert not core_fragment.exists() + assert ( + subprocess.check_output( + ["git", "show", "HEAD:temporalio/api/generated.py"], + cwd=release_repo, + text=True, + ) + == "# Generated\n" + ) + + +def test_core_update_failure_stops_release( + monkeypatch: pytest.MonkeyPatch, release_repo: pathlib.Path +) -> None: + monkeypatch.setattr( + scripts.prepare_release, + "__file__", + str(release_repo / "scripts/prepare_release.py"), + ) + monkeypatch.setattr( + scripts.prepare_release, "create_release_branch", lambda *_args: None + ) + + def fail(*_args: object) -> None: + raise RuntimeError("proto generation failed") + + monkeypatch.setattr(scripts.prepare_release, "update_core", fail) + with pytest.raises(RuntimeError, match="proto generation failed"): + scripts.prepare_release.main(["1.35.0", "--update-core", "--skip-lock"]) + ensure_clean_worktree(release_repo) + assert "1.34.0" in (release_repo / "pyproject.toml").read_text() + assert (release_repo / "changelog/fixed/giggling-teapot.md").exists() + + +@pytest.fixture +def release_remote( + release_repo: pathlib.Path, tmp_path_factory: pytest.TempPathFactory +) -> pathlib.Path: + remote = tmp_path_factory.mktemp("release-remote") / "remote.git" + subprocess.run(["git", "init", "--bare", "-q", str(remote)], check=True) + for command in [ + ["git", "config", "user.name", "Test"], + ["git", "config", "user.email", "test@example.com"], + ["git", "branch", "-M", "main"], + ["git", "remote", "add", "origin", str(remote)], + ["git", "push", "-u", "origin", "main"], + ]: + subprocess.run(command, cwd=release_repo, check=True) + return remote + + +@pytest.mark.parametrize("local_exists", [False, True]) +@pytest.mark.parametrize("remote_exists", [False, True]) +def test_upsert_release_branch( + release_repo: pathlib.Path, + release_remote: pathlib.Path, + local_exists: bool, + remote_exists: bool, +) -> None: + branch = "chore/release-1.35.0" + subprocess.run(["git", "switch", "-c", branch], cwd=release_repo, check=True) + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Previous release"], + cwd=release_repo, + check=True, + ) + previous = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo, text=True + ).strip() + if remote_exists: + subprocess.run(["git", "push", "origin", branch], cwd=release_repo, check=True) + subprocess.run(["git", "switch", "main"], cwd=release_repo, check=True) + if not local_exists: + subprocess.run(["git", "branch", "-D", branch], cwd=release_repo, check=True) + + expected = create_release_branch(release_repo, "1.35.0") + assert expected == (previous if remote_exists else "") + assert subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo + ) == subprocess.check_output(["git", "rev-parse", "main"], cwd=release_repo) + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Regenerated release"], + cwd=release_repo, + check=True, + ) + push_release_branch(release_repo, "1.35.0", expected) + assert subprocess.check_output( + ["git", "rev-parse", f"refs/heads/{branch}"], cwd=release_remote + ) == subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=release_repo) + + +@pytest.mark.parametrize("remote_exists", [False, True]) +def test_release_push_rejects_concurrent_remote_change( + release_repo: pathlib.Path, release_remote: pathlib.Path, remote_exists: bool +) -> None: + branch = "chore/release-1.35.0" + if remote_exists: + subprocess.run( + ["git", "push", "origin", f"main:refs/heads/{branch}"], + cwd=release_repo, + check=True, + ) + expected = create_release_branch(release_repo, "1.35.0") + subprocess.run( + ["git", "commit", "--allow-empty", "-m", "Concurrent update"], + cwd=release_repo, + check=True, + ) + subprocess.run(["git", "push", "origin", branch], cwd=release_repo, check=True) + concurrent_commit = subprocess.check_output( + ["git", "rev-parse", "HEAD"], cwd=release_repo + ) + create_release_branch(release_repo, "1.35.0") + with pytest.raises(subprocess.CalledProcessError): + push_release_branch(release_repo, "1.35.0", expected) + assert ( + subprocess.check_output( + ["git", "rev-parse", f"refs/heads/{branch}"], cwd=release_remote + ) + == concurrent_commit ) - create_release_branch(pathlib.Path("/repo"), "1.30.0") - assert calls[1] == [ - "git", - "switch", - "--create", - "chore/release-1.30.0", - "origin/main", - ] def test_clean_worktree_rejected(monkeypatch: pytest.MonkeyPatch) -> None: @@ -290,14 +456,25 @@ def test_clean_worktree_rejected(monkeypatch: pytest.MonkeyPatch) -> None: ensure_only_release_changes(pathlib.Path("/repo")) -def test_create_release_pr(monkeypatch: pytest.MonkeyPatch) -> None: +@pytest.mark.parametrize( + "existing_url", ["", "https://github.com/example/repo/pull/123\n"] +) +def test_create_release_pr(monkeypatch: pytest.MonkeyPatch, existing_url: str) -> None: calls: list[list[str]] = [] - monkeypatch.setattr( - subprocess, "run", lambda command, **_kwargs: calls.append(command) - ) + + def run(command: list[str], **_kwargs: object) -> subprocess.CompletedProcess[str]: + calls.append(command) + return subprocess.CompletedProcess(command, 0, existing_url) + + monkeypatch.setattr(subprocess, "run", run) create_release_pr(pathlib.Path("/repo"), "1.30.0") + assert calls[0][:3] == ["gh", "pr", "list"] assert "chore/release-1.30.0" in calls[0] - assert calls[0][-2:] == ["--label", "skip-changelog"] + if existing_url: + assert len(calls) == 1 + else: + assert calls[1][:3] == ["gh", "pr", "create"] + assert calls[1][-2:] == ["--label", "skip-changelog"] def test_push_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: @@ -307,5 +484,12 @@ def test_push_release_branch(monkeypatch: pytest.MonkeyPatch) -> None: ) push_release_branch(pathlib.Path("/repo"), "1.30.0") assert calls == [ - ["git", "push", "--set-upstream", "origin", "chore/release-1.30.0"] + [ + "git", + "push", + "--force-with-lease=refs/heads/chore/release-1.30.0:", + "--set-upstream", + "origin", + "chore/release-1.30.0", + ] ] diff --git a/tests/test_runtime.py b/tests/test_runtime.py index 30579121c2..8705f4de09 100644 --- a/tests/test_runtime.py +++ b/tests/test_runtime.py @@ -1,10 +1,16 @@ +import asyncio +import dataclasses import gc import logging import logging.handlers +import pickle import queue import re +import subprocess +import sys import uuid from datetime import timedelta +from pathlib import Path from typing import Any, cast from urllib.request import urlopen @@ -79,6 +85,31 @@ async def run_workflow(client: Client): assert "long_request" in f.read().decode("utf-8") +async def test_runtime_shutdown_after_completed_rpc(env: WorkflowEnvironment): + # Preserve connection credentials, but let the child create its own native runtime. + result = await asyncio.to_thread( + subprocess.run, + [ + sys.executable, + "-X", + "faulthandler", + str(Path(__file__).with_name("bridge") / "runtime_shutdown.py"), + "client", + ], + input=pickle.dumps( + ( + dataclasses.replace(env.client.service_client.config, runtime=None), + env.client.namespace, + ) + ), + capture_output=True, + timeout=30, + ) + assert result.returncode == 0, result.stderr.decode() + assert result.stdout.strip() == b"completed callbacks: 1" + assert result.stderr == b"" + + async def test_runtime_log_forwarding(): # Create logger with record capture log_queue: queue.Queue[logging.LogRecord] = queue.Queue() diff --git a/tests/test_serialization_context.py b/tests/test_serialization_context.py index 1c612dcee3..fb7db6e6e7 100644 --- a/tests/test_serialization_context.py +++ b/tests/test_serialization_context.py @@ -67,7 +67,10 @@ from temporalio.exceptions import ApplicationError, NexusOperationError from temporalio.testing import WorkflowEnvironment from temporalio.worker import Replayer, Worker -from temporalio.worker._workflow_instance import UnsandboxedWorkflowRunner +from temporalio.worker._workflow_instance import ( + UnsandboxedWorkflowRunner, + _WorkflowInstanceImpl, +) from tests.helpers import assert_eq_eventually from tests.helpers.nexus import make_nexus_endpoint_name from tests.test_extstore import InMemoryTestDriver @@ -1347,6 +1350,71 @@ async def test_codec_with_context(client: Client): del test_traces[workflow_id] +async def test_command_context_resolved_only_with_codec_or_external_storage( + client: Client, monkeypatch: pytest.MonkeyPatch +): + """Context resolution calls into the workflow instance, which is costly in the + sandbox, so workers skip it when no codec or external storage can use it.""" + lookups: defaultdict[str, int] = defaultdict(int) + + def count_lookups(name: str) -> None: + lookup = getattr(_WorkflowInstanceImpl, name) + + def counting_lookup(self, command_info): # type: ignore[reportMissingParameterType] + lookups[name] += 1 + return lookup(self, command_info) + + monkeypatch.setattr(_WorkflowInstanceImpl, name, counting_lookup) + + count_lookups("get_serialization_context") + count_lookups("get_external_store_context") + + async def run_workflow(data_converter: DataConverter) -> tuple[int, int]: + """Returns the serialization and external store context lookup counts.""" + lookups.clear() + workflow_id = str(uuid.uuid4()) + task_queue = str(uuid.uuid4()) + client_config = client.config() + client_config["data_converter"] = data_converter + converter_client = Client(**client_config) + async with Worker( + converter_client, + task_queue=task_queue, + workflows=[CodecTestWorkflow], + workflow_runner=UnsandboxedWorkflowRunner(), + ): + await converter_client.execute_workflow( + CodecTestWorkflow.run, + "data", + id=workflow_id, + task_queue=task_queue, + ) + test_traces.pop(workflow_id, None) + return ( + lookups["get_serialization_context"], + lookups["get_external_store_context"], + ) + + assert await run_workflow(DataConverter.default) == (0, 0) + + serialization_lookups, store_lookups = await run_workflow( + dataclasses.replace( + DataConverter.default, payload_codec=PayloadCodecWithContext() + ) + ) + assert serialization_lookups > 0 + assert store_lookups == 0 + + serialization_lookups, store_lookups = await run_workflow( + dataclasses.replace( + DataConverter.default, + external_storage=ExternalStorage(drivers=[InMemoryTestDriver()]), + ) + ) + assert serialization_lookups > 0 + assert store_lookups > 0 + + # Local activity codec test diff --git a/tests/test_update_core.py b/tests/test_update_core.py index 271ee111af..6d1edd44a4 100644 --- a/tests/test_update_core.py +++ b/tests/test_update_core.py @@ -9,6 +9,121 @@ import scripts.update_core +@pytest.mark.parametrize( + "tags, expected", + [ + ( + "core-v0.9.0\ncore-v0.11.0\ncore-v0.10.2\ncore-v0.12.0-rc.1\n" + "sdk-v99.0.0\ncore-v0.11.1\n", + "core-v0.11.1", + ), + ("core-v1.0.0\ncore-v0.99.0\n", "core-v1.0.0"), + ], +) +def test_latest_core_tag( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + tags: str, + expected: str, +) -> None: + (tmp_path / "temporalio/bridge/sdk-core/.git").mkdir(parents=True) + calls: list[list[str]] = [] + + def run(command: list[str], **kwargs: object) -> subprocess.CompletedProcess[str]: + assert kwargs["cwd"] == tmp_path / "temporalio/bridge/sdk-core" + assert kwargs["check"] is True + calls.append(command) + return subprocess.CompletedProcess(command, 0, tags) + + monkeypatch.setattr(subprocess, "run", run) + assert scripts.update_core.latest_core_tag(tmp_path) == expected + assert calls == [ + ["git", "fetch", "origin", "--tags"], + ["git", "tag", "--list", "core-v*"], + ] + + +def test_latest_core_tag_requires_stable_release( + tmp_path: pathlib.Path, monkeypatch: pytest.MonkeyPatch +) -> None: + (tmp_path / "temporalio/bridge/sdk-core/.git").mkdir(parents=True) + monkeypatch.setattr( + subprocess, + "run", + lambda *args, **kwargs: subprocess.CompletedProcess( + [], 0, "core-v1.0.0-rc.1\n" + ), + ) + with pytest.raises(RuntimeError, match="No stable"): + scripts.update_core.latest_core_tag(tmp_path) + + +def test_latest_core_tag_requires_initialized_submodule(tmp_path: pathlib.Path) -> None: + with pytest.raises(RuntimeError, match="git submodule update --init"): + scripts.update_core.latest_core_tag(tmp_path) + + +@pytest.mark.parametrize( + "args, expected", + [ + ([], []), + (["--latest-tag"], ["--revision", "core-v0.11.0"]), + (["--revision", "main"], ["--revision", "main"]), + (["--revision=main"], ["--revision", "main"]), + ], +) +def test_update_core_orders_import_lock_and_protos( + tmp_path: pathlib.Path, + monkeypatch: pytest.MonkeyPatch, + args: list[str], + expected: list[str], +) -> None: + calls: list[str] = [] + + def latest(_root: pathlib.Path) -> str: + calls.append("tag") + return "core-v0.11.0" + + def import_core(_root: pathlib.Path, tool_args: list[str]) -> str: + assert tool_args == [ + "update-core", + "--submodule", + "temporalio/bridge/sdk-core", + *expected, + ] + calls.append("import") + return "" + + def generate(command: list[str], **kwargs: object) -> None: + assert command == ["poe", "gen-protos"] + assert kwargs == {"cwd": tmp_path, "check": True} + calls.append("protos") + + monkeypatch.setattr(scripts.update_core, "latest_core_tag", latest) + monkeypatch.setattr(scripts.update_core, "run_tool", import_core) + monkeypatch.setattr( + scripts.update_core, + "update_bridge_dependencies", + lambda _root: calls.append("lock"), + ) + monkeypatch.setattr(subprocess, "run", generate) + scripts.update_core.update_core(tmp_path, args) + assert calls == (["tag"] if args == ["--latest-tag"] else []) + [ + "import", + "lock", + "protos", + ] + + +@pytest.mark.parametrize("revision", [["--revision", "main"], ["--revision=main"]]) +def test_latest_tag_and_revision_are_mutually_exclusive( + tmp_path: pathlib.Path, revision: list[str] +) -> None: + with pytest.raises(SystemExit) as err: + scripts.update_core.update_core(tmp_path, ["--latest-tag", *revision]) + assert err.value.code == 2 + + def write_crate(path: pathlib.Path, name: str, version: str) -> None: path.mkdir(parents=True, exist_ok=True) (path / "Cargo.toml").write_text( @@ -81,8 +196,10 @@ def test_refresh_failure_leaves_manifest_for_review( ) -> None: bridge = bridge_fixture(tmp_path) - def fail(*_args: object, **_kwargs: object) -> None: - raise subprocess.CalledProcessError(1, "cargo fetch") + def fail(command: list[str], **kwargs: object) -> None: + assert command == ["cargo", "update"] + assert kwargs == {"cwd": bridge, "check": True} + raise subprocess.CalledProcessError(1, command) monkeypatch.setattr(subprocess, "run", fail) with pytest.raises(subprocess.CalledProcessError): diff --git a/tests/worker/test_extstore.py b/tests/worker/test_extstore.py index 8b9b12fd1c..dd4b8b0a8b 100644 --- a/tests/worker/test_extstore.py +++ b/tests/worker/test_extstore.py @@ -1,3 +1,4 @@ +import asyncio import contextlib import dataclasses import json @@ -35,6 +36,7 @@ StorageDriverActivityInfo, StorageDriverClaim, StorageDriverRetrieveContext, + StorageDriverSelectContext, StorageDriverStoreContext, StorageDriverWorkflowInfo, WithSerializationContext, @@ -1536,6 +1538,78 @@ async def test_store_metadata_standalone_activity(env: WorkflowEnvironment) -> N assert execute_ctx.target.run_id is not None +class AsyncCompletedActivity: + def __init__(self) -> None: + self.task_token: asyncio.Future[bytes] = asyncio.Future() + + @activity.defn + async def run(self, _arg: str) -> str: + self.task_token.set_result(activity.info().task_token) + activity.raise_complete_async() + + +@workflow.defn +class AsyncCompletedActivityWorkflow: + @workflow.run + async def run(self, arg: str) -> str: + return await workflow.execute_activity( + "run", arg, start_to_close_timeout=timedelta(seconds=30) + ) + + +async def test_store_and_select_contexts_carry_ambient_namespace( + env: WorkflowEnvironment, +) -> None: + driver = ContextTrackingStorageDriver() + select_contexts: list[StorageDriverSelectContext] = [] + + def selector(context: StorageDriverSelectContext, _: Payload) -> StorageDriver: + select_contexts.append(context) + return driver + + client = await env.connect_client( + data_converter=dataclasses.replace( + temporalio.converter.default(), + external_storage=ExternalStorage( + drivers=[driver], + driver_selector=selector, + payload_size_threshold=0, + ), + ), + ) + async_activity = AsyncCompletedActivity() + + async with new_worker( + client, AsyncCompletedActivityWorkflow, activities=[async_activity.run] + ) as worker: + handle = await client.start_workflow( + AsyncCompletedActivityWorkflow.run, + "input", + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + task_token = await asyncio.wait_for(async_activity.task_token, timeout=10) + await client.get_async_activity_handle(task_token=task_token).complete( + "async result" + ) + assert await handle.result() == "async result" + + assert len(driver.store_contexts) == 4 + assert len(select_contexts) == len(driver.store_contexts) + for store_ctx, select_ctx in zip(driver.store_contexts, select_contexts): + assert store_ctx.namespace == client.namespace + assert select_ctx.namespace == client.namespace + assert select_ctx.target == store_ctx.target + + client_start, worker_schedule, token_completion, worker_complete = ( + driver.store_contexts + ) + assert isinstance(client_start.target, StorageDriverWorkflowInfo) + assert isinstance(worker_schedule.target, StorageDriverWorkflowInfo) + assert token_completion.target is None + assert isinstance(worker_complete.target, StorageDriverWorkflowInfo) + + @workflow.defn class ContinueAsNewExtStoreWorkflow: """Workflow that continues-as-new once with a large payload. diff --git a/tests/worker/test_workflow.py b/tests/worker/test_workflow.py index f8eb3bb77e..da5688215b 100644 --- a/tests/worker/test_workflow.py +++ b/tests/worker/test_workflow.py @@ -1520,10 +1520,10 @@ async def run(self) -> str: ) -def test_single_batch_workflow_activation_jobs_default_enabled() -> None: +def test_single_batch_workflow_activation_jobs_default_disabled() -> None: assert ( _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG - in temporalio.worker._workflow_instance._DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS + not in temporalio.worker._workflow_instance._DEFAULT_ENABLED_WORKFLOW_LOGIC_FLAGS ) @@ -1585,6 +1585,9 @@ async def ready() -> bool: task_queue=task_queue, workflow_runner=runner, ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with worker: assert await handle.result() == "done" @@ -1693,6 +1696,9 @@ async def test_workflow_cancel_and_condition_ready_in_same_activation( # the normal queue. max_cached_workflows=0, ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with worker: async def ready() -> bool: @@ -1711,6 +1717,9 @@ async def ready() -> bool: task_queue=task_queue, workflow_runner=runner, ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with worker: async def waiting_after_cancel() -> bool: @@ -1786,6 +1795,9 @@ async def test_workflow_cancel_and_child_completion_in_same_activation( CompleteChildOnSignalWorkflow, task_queue=child_task_queue, ) + child_worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with child_worker: handle = await client.start_workflow( CancelAtChildCompletionWorkflow.run, @@ -1803,6 +1815,9 @@ async def test_workflow_cancel_and_child_completion_in_same_activation( # worker stops on the normal queue. max_cached_workflows=0, ) + parent_worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with parent_worker: async def child_started() -> bool: @@ -1832,6 +1847,9 @@ async def child_completion_recorded() -> None: task_queue=parent_task_queue, workflow_runner=runner, ) + parent_worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with parent_worker: with pytest.raises(WorkflowFailureError) as err: await handle.result() @@ -8586,6 +8604,9 @@ async def test_async_loop_ordering(client: Client, env: WorkflowEnvironment): activities=[say_hello], task_queue=task_queue, ) + worker._set_default_workflow_logic_flag( + _SINGLE_BATCH_WORKFLOW_LOGIC_FLAG, enabled=True + ) async with worker: await asyncio.sleep(0.2) await handle.signal(SignalsActivitiesTimersUpdatesTracingWorkflow.dosig, "1") diff --git a/tests/worker/test_workflow_deadlock.py b/tests/worker/test_workflow_deadlock.py new file mode 100644 index 0000000000..adc077e3fe --- /dev/null +++ b/tests/worker/test_workflow_deadlock.py @@ -0,0 +1,362 @@ +from __future__ import annotations + +import asyncio +import concurrent.futures +import contextvars +import threading +from collections.abc import Callable, Iterator +from typing import Any, cast +from unittest.mock import AsyncMock, Mock + +import pytest + +import temporalio.bridge.proto.workflow_activation as workflow_activation +import temporalio.bridge.proto.workflow_completion as workflow_completion +import temporalio.bridge.worker +import temporalio.client +import temporalio.common +import temporalio.converter +import temporalio.worker +import temporalio.worker._workflow +import temporalio.worker._workflow_instance +import temporalio.worker.workflow_sandbox +import temporalio.workflow +from tests.helpers import new_worker + + +@pytest.fixture +def workflow_worker() -> Iterator[temporalio.worker._workflow._WorkflowWorker]: + bridge = Mock(spec=temporalio.bridge.worker.Worker) + bridge.complete_workflow_activation = AsyncMock() + with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor: + yield temporalio.worker._workflow._WorkflowWorker( + bridge_worker=lambda: bridge, + namespace="default", + task_queue="test-deadlock", + workflows=[], + workflow_task_executor=executor, + max_concurrent_workflow_tasks=None, + workflow_runner=temporalio.worker.UnsandboxedWorkflowRunner(), + unsandboxed_workflow_runner=temporalio.worker.UnsandboxedWorkflowRunner(), + data_converter=temporalio.converter.DataConverter.default, + interceptors=[], + workflow_failure_exception_types=[], + patch_activation_callback=None, + debug_mode=False, + disable_eager_activity_execution=False, + metric_meter=temporalio.common.MetricMeter.noop, + on_eviction_hook=None, + disable_safe_eviction=False, + should_enforce_versioning_behavior=False, + assert_local_activity_valid=lambda _: None, + encode_headers=False, + max_workflow_task_external_storage_concurrency=3, + ) + + +def eviction_activation() -> workflow_activation.WorkflowActivation: + return workflow_activation.WorkflowActivation( + run_id="run", + jobs=[ + workflow_activation.WorkflowActivationJob( + remove_from_cache=workflow_activation.RemoveFromCache() + ) + ], + ) + + +@pytest.mark.parametrize( + "activation_error", + [None, RuntimeError, temporalio.worker._workflow._InterruptDeadlockError], +) +async def test_workflow_deadlock_waits_for_activation( + workflow_worker: temporalio.worker._workflow._WorkflowWorker, + monkeypatch: pytest.MonkeyPatch, + activation_error: type[BaseException] | None, +): + release = threading.Event() + activation_finished = threading.Event() + eviction_overlapped: list[bool] = [] + + def activate( + act: workflow_activation.WorkflowActivation, + ) -> workflow_completion.WorkflowActivationCompletion: + if act.jobs: + eviction_overlapped.append(not activation_finished.is_set()) + else: + try: + assert release.wait(15) + if activation_error: + raise activation_error() + finally: + activation_finished.set() + return workflow_completion.WorkflowActivationCompletion() + + instance = Mock(spec=temporalio.worker.WorkflowInstance) + instance.activate.side_effect = activate + instance.get_thread_id.return_value = None + instance.get_info.return_value = Mock(workflow_type="test") + running = temporalio.worker._workflow._RunningWorkflow(instance, "workflow") + interrupt = Mock() + monkeypatch.setattr(running, "attempt_deadlock_interruption", interrupt) + workflow_worker._running_workflows["run"] = running + workflow_worker._deadlock_timeout_seconds = 1 + eviction_task: asyncio.Task[None] | None = None + try: + await workflow_worker._handle_activation( + workflow_activation.WorkflowActivation(run_id="run") + ) + + bridge = cast(Mock, workflow_worker._bridge_worker()) + completion = bridge.complete_workflow_activation.call_args.args[0] + assert "TMPRL1101" in completion.failed.failure.message + interrupt.assert_called_once_with() + activation_future = cast(asyncio.Future, running.deadlocked_activation_task) + assert not activation_future.done() + + eviction_task = asyncio.create_task( + workflow_worker._handle_activation(eviction_activation()) + ) + await asyncio.sleep(0) + assert not eviction_task.done() + assert not eviction_overlapped + finally: + release.set() + if eviction_task: + await asyncio.wait_for(eviction_task, 10) + elif running.deadlocked_activation_task: + await asyncio.gather( + running.deadlocked_activation_task, return_exceptions=True + ) + + assert eviction_overlapped == [False] + assert "run" not in workflow_worker._running_workflows + assert bridge.complete_workflow_activation.call_count == 2 + + +async def test_workflow_deadlock_cancels_queued_activation( + workflow_worker: temporalio.worker._workflow._WorkflowWorker, + monkeypatch: pytest.MonkeyPatch, +): + release = threading.Event() + executor = workflow_worker._workflow_task_executor + instance = Mock(spec=temporalio.worker.WorkflowInstance) + instance.get_info.return_value = Mock(workflow_type="test") + instance.activate.return_value = workflow_completion.WorkflowActivationCompletion() + running = temporalio.worker._workflow._RunningWorkflow(instance, "workflow") + interrupt = Mock() + monkeypatch.setattr(running, "attempt_deadlock_interruption", interrupt) + workflow_worker._running_workflows["run"] = running + workflow_worker._deadlock_timeout_seconds = 1 + try: + # Fill both executor threads before submitting the activation. + for _ in range(2): + executor.submit(release.wait, 15) + await workflow_worker._handle_activation( + workflow_activation.WorkflowActivation(run_id="run") + ) + bridge = cast(Mock, workflow_worker._bridge_worker()) + completion = bridge.complete_workflow_activation.call_args.args[0] + assert "TMPRL1101" in completion.failed.failure.message + assert running.deadlocked_activation_task is None + interrupt.assert_not_called() + instance.activate.assert_not_called() + finally: + release.set() + if running.deadlocked_activation_task is not None: + await asyncio.gather( + running.deadlocked_activation_task, return_exceptions=True + ) + + evict = eviction_activation() + await workflow_worker._handle_activation(evict) + # Once executor capacity is available, only the eviction should run. + instance.activate.assert_called_once_with(evict) + assert "run" not in workflow_worker._running_workflows + assert bridge.complete_workflow_activation.call_count == 2 + + +@pytest.mark.parametrize("fail_first", [False, True]) +@pytest.mark.parametrize("finish_during_backoff", [False, True]) +async def test_workflow_eviction_timeout_reuses_activation( + workflow_worker: temporalio.worker._workflow._WorkflowWorker, + monkeypatch: pytest.MonkeyPatch, + caplog: pytest.LogCaptureFixture, + fail_first: bool, + finish_during_backoff: bool, +): + release = threading.Event() + calls = 0 + + def activate( + _act: workflow_activation.WorkflowActivation, + ) -> workflow_completion.WorkflowActivationCompletion: + nonlocal calls + calls += 1 + if calls == 1: + assert release.wait(15) + if fail_first: + raise RuntimeError("retry this eviction") + return workflow_completion.WorkflowActivationCompletion() + + instance = Mock(spec=temporalio.worker.WorkflowInstance) + instance.activate.side_effect = activate + running = temporalio.worker._workflow._RunningWorkflow(instance, "workflow") + workflow_worker._running_workflows["run"] = running + workflow_worker._deadlock_timeout_seconds = 1 + loop = asyncio.get_running_loop() + run_in_executor = loop.run_in_executor + eviction_futures: list[asyncio.Future] = [] + + def record_eviction( + executor: concurrent.futures.Executor | None, + func: Callable[..., Any], + *args: Any, + ) -> asyncio.Future: + future = run_in_executor(executor, func, *args) + if asyncio.current_task() is eviction_task: + eviction_futures.append(future) + return future + + backoff_started = asyncio.Event() + retry = asyncio.Event() + backoff_finished = asyncio.Event() + sleep = asyncio.sleep + + async def gate_backoff(delay: float, result: Any = None) -> Any: + if asyncio.current_task() is not eviction_task: + return await sleep(delay, result) + if not backoff_started.is_set(): + backoff_started.set() + await retry.wait() + backoff_finished.set() + return result + + monkeypatch.setattr(loop, "run_in_executor", record_eviction) + monkeypatch.setattr(asyncio, "sleep", gate_backoff) + bridge = cast(Mock, workflow_worker._bridge_worker()) + eviction_task = asyncio.create_task( + workflow_worker._handle_activation(eviction_activation()) + ) + try: + await asyncio.wait_for(backoff_started.wait(), 5) + assert "Timed out running eviction job" in caplog.text + assert len(eviction_futures) == 1 + first_eviction = eviction_futures[0] + assert not first_eviction.done() + assert workflow_worker._could_not_evict_count == 1 + bridge.complete_workflow_activation.assert_not_called() + if finish_during_backoff: + # Wait for completion without consuming its result or exception. + release.set() + done, _ = await asyncio.wait((first_eviction,), timeout=5) + assert first_eviction in done + else: + # Let the retry loop reach its next wait before releasing the worker + # thread. It must wait on the existing call, not submit another. + retry.set() + await asyncio.wait_for(backoff_finished.wait(), 5) + assert len(eviction_futures) == 1 + assert not eviction_task.done() + finally: + release.set() + retry.set() + await asyncio.wait_for(eviction_task, 10) + + assert len(eviction_futures) == (2 if fail_first else 1) + assert workflow_worker._could_not_evict_count == 0 + assert "run" not in workflow_worker._running_workflows + bridge.complete_workflow_activation.assert_called_once() + assert bridge.complete_workflow_activation.call_args.args[0].HasField("successful") + + +@temporalio.workflow.defn +class DeadlockEvictionWorkflow: + def __init__(self) -> None: + self.poked = False + + @temporalio.workflow.run + async def run(self) -> None: + await temporalio.workflow.wait_condition(lambda: self.poked) + + @temporalio.workflow.signal + def poke(self) -> None: + self.poked = True + + @temporalio.workflow.query + def state(self) -> bool: + return self.poked + + +@pytest.mark.parametrize("sandboxed", [False, True]) +async def test_workflow_eviction_after_lost_task_done_callback( + client: temporalio.client.Client, + monkeypatch: pytest.MonkeyPatch, + sandboxed: bool, +): + impl = temporalio.worker._workflow_instance._WorkflowInstanceImpl + original_call_soon = impl.call_soon + armed = False + interrupted: list[ + tuple[temporalio.worker._workflow_instance._WorkflowInstanceImpl, asyncio.Task] + ] = [] + + def call_soon( + self: temporalio.worker._workflow_instance._WorkflowInstanceImpl, + callback: Callable[..., object], + *args: Any, + context: contextvars.Context | None = None, + ) -> asyncio.Handle: + nonlocal armed + task = args[0] if args else None + if ( + armed + and getattr(callback, "__self__", None) is self._tasks + and isinstance(task, asyncio.Task) + and task.get_name().startswith("query:") + ): + armed = False + interrupted.append((self, task)) + # Reproduce #2067 without an actual asynchronous thread interrupt, + # so a regression cannot corrupt the test worker's event loop. + raise temporalio.worker._workflow._InterruptDeadlockError() + return original_call_soon(self, callback, *args, context=context) + + monkeypatch.setattr(impl, "call_soon", call_soon) + worker = new_worker( + client, + DeadlockEvictionWorkflow, + workflow_runner=( + temporalio.worker.workflow_sandbox.SandboxedWorkflowRunner() + if sandboxed + else temporalio.worker.UnsandboxedWorkflowRunner() + ), + ) + evicted = asyncio.Event() + assert worker._workflow_worker + worker._workflow_worker._on_eviction_hook = lambda _run_id, _job: evicted.set() + async with worker: + try: + handle = await client.start_workflow( + DeadlockEvictionWorkflow.run, + id=f"workflow-{worker.task_queue}", + task_queue=worker.task_queue, + ) + assert not await handle.query(DeadlockEvictionWorkflow.state) + armed = True + assert not await handle.query(DeadlockEvictionWorkflow.state) + assert len(interrupted) == 1 + instance, interrupted_task = interrupted[0] + assert interrupted_task.done() + assert interrupted_task in instance._tasks + + assert handle.result_run_id + worker._bridge_worker.request_workflow_eviction(handle.result_run_id) + await asyncio.wait_for(evicted.wait(), 10) + assert not instance._tasks + await handle.signal(DeadlockEvictionWorkflow.poke) + await asyncio.wait_for(handle.result(), 10) + finally: + # Keep shutdown safe even when the finished-task invariant regresses. + for instance, interrupted_task in interrupted: + instance._tasks.discard(interrupted_task) diff --git a/tests/worker/workflow_sandbox/test_importer.py b/tests/worker/workflow_sandbox/test_importer.py index e380593558..08248d386c 100644 --- a/tests/worker/workflow_sandbox/test_importer.py +++ b/tests/worker/workflow_sandbox/test_importer.py @@ -7,6 +7,7 @@ import textwrap import time import types +from pathlib import Path from typing import Any import pytest @@ -281,6 +282,48 @@ def test_workflow_sandbox_importer_passthough_context_manager(): assert id(outside) == id(inside) +def test_workflow_sandbox_importer_passthrough_from_import(): + import tests.worker.workflow_sandbox.testmodules.stateful_module as outside + + # The package is already loaded in the sandbox, like the package of a + # workflow module, so it has no attribute for the submodule yet + with Importer(restrictions, RestrictionContext()).applied(): + import tests.worker.workflow_sandbox.testmodules as package + + assert not hasattr(package, "stateful_module") + with workflow.unsafe.imports_passed_through(): + from tests.worker.workflow_sandbox.testmodules import ( + stateful_module as inside, + ) + assert id(inside) == id(outside) + + +def test_workflow_sandbox_importer_passthrough_relative_from_import(): + import tests.worker.workflow_sandbox.test_restrictions as outside + + with Importer(restrictions, RestrictionContext()).applied(): + import tests.worker.workflow_sandbox as package + + assert not hasattr(package, "test_restrictions") + with workflow.unsafe.imports_passed_through(): + from . import test_restrictions as inside + assert id(inside) == id(outside) + + +def test_workflow_sandbox_importer_passthrough_star_import(): + import tests.worker.workflow_sandbox.testmodules.stateful_module as outside + + importer = Importer(restrictions, RestrictionContext()) + package_name = "tests.worker.workflow_sandbox.testmodules" + with importer.applied(): + importer.import_func(package_name) + setattr(sys.modules[package_name], "__all__", ["stateful_module"]) + with workflow.unsafe.imports_passed_through(): + importer.import_func(package_name, fromlist=("*",)) + inside = sys.modules[f"{package_name}.stateful_module"] + assert id(inside) == id(outside) + + def test_workflow_sandbox_importer_passthrough_all_modules(): import tests.worker.workflow_sandbox.testmodules.stateful_module as outside @@ -297,6 +340,49 @@ def test_workflow_sandbox_importer_passthrough_all_modules(): assert id(outside) == id(inside2) +@pytest.fixture +def host_main_module( + tmp_path: Path, monkeypatch: pytest.MonkeyPatch +) -> types.ModuleType: + main_file = tmp_path / "main_workflow.py" + main_file.write_text('module_state = ["file"]\n') + host_main = types.ModuleType("__main__") + host_main.__file__ = str(main_file) + setattr(host_main, "module_state", ["host"]) + monkeypatch.setitem(sys.modules, "__main__", host_main) + return host_main + + +@pytest.mark.parametrize( + "main_restrictions,passed_through", + [ + (restrictions, False), + (restrictions.with_passthrough_all_modules(), True), + (restrictions.with_passthrough_modules("__temporal_main__"), True), + ], + ids=["default", "all_modules", "main_module"], +) +def test_workflow_sandbox_importer_main_module( + host_main_module: types.ModuleType, + main_restrictions: SandboxRestrictions, + passed_through: bool, +): + importer = Importer( + main_restrictions, + RestrictionContext(), + workflow_module_name="__temporal_main__", + ) + with importer.applied(): + inside = importer.import_func("__temporal_main__") + if passed_through: + assert inside is host_main_module + else: + # Not passed through, so it is loaded again from the file __main__ + # came from + assert inside is not host_main_module + assert getattr(inside, "module_state") == ["file"] + + def test_workflow_sandbox_importer_invalid_module_members(): importer = Importer(restrictions, RestrictionContext()) # Can access the function, no problem diff --git a/tests/worker/workflow_sandbox/test_runner.py b/tests/worker/workflow_sandbox/test_runner.py index 1739a1cdc3..f1d8415584 100644 --- a/tests/worker/workflow_sandbox/test_runner.py +++ b/tests/worker/workflow_sandbox/test_runner.py @@ -3,6 +3,7 @@ import asyncio import dataclasses import functools +import importlib.util import inspect import os import sys @@ -13,6 +14,7 @@ from dataclasses import dataclass from datetime import date, datetime, timedelta from enum import IntEnum +from pathlib import Path from typing import Any import pytest @@ -36,6 +38,9 @@ from temporalio.workflow import SandboxImportNotificationPolicy from tests.helpers import assert_eq_eventually from tests.worker.workflow_sandbox.testmodules import stateful_module +from tests.worker.workflow_sandbox.testmodules.from_import_workflow import ( + FromImportPassthroughWorkflow, +) from tests.worker.workflow_sandbox.testmodules.proto import SomeMessage global_state = ["global orig"] @@ -484,6 +489,30 @@ async def test_workflow_sandbox_bad_asyncio(client: Client): assert "asyncio.wait()" in str(warnings[1].message) +@workflow.defn +class UnsupportedTaskGroupWorkflow: + @workflow.run + async def run(self) -> str: + async with asyncio.TaskGroup() as group: + task = group.create_task(asyncio.sleep(0, result="done")) + return task.result() + + +async def test_workflow_sandbox_task_group_warning(client: Client): + async with new_worker(client, UnsupportedTaskGroupWorkflow) as worker: + with pytest.warns( + UserWarning, + match=r"asyncio\.TaskGroup\(\) has non-deterministic task cancellation order", + ) as warnings: + result = await client.execute_workflow( + UnsupportedTaskGroupWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert result == "done" + assert len(warnings) == 1 + + def new_worker( client: Client, *workflows: type, @@ -591,6 +620,32 @@ async def test_workflow_sandbox_import_workflow_without_warning(): ) +@pytest.mark.parametrize( + "main_restrictions", + [ + SandboxRestrictions.default, + SandboxRestrictions.default.with_passthrough_all_modules(), + SandboxRestrictions.default.with_passthrough_modules("__temporal_main__"), + ], + ids=["default", "all_modules", "main_module"], +) +async def test_workflow_sandbox_validates_workflow_in_main_module( + main_restrictions: SandboxRestrictions, monkeypatch: pytest.MonkeyPatch +): + # Load the file as __main__, like running it as a script + spec = importlib.util.spec_from_file_location( + "__main__", Path(__file__).parent / "testmodules" / "main_module_workflow.py" + ) + assert spec and spec.loader + main_module = importlib.util.module_from_spec(spec) + spec.loader.exec_module(main_module) + monkeypatch.setitem(sys.modules, "__main__", main_module) + + SandboxedWorkflowRunner(main_restrictions).prepare_workflow( + workflow._Definition.must_from_class(main_module.MainModuleWorkflow) + ) + + async def test_workflow_sandbox_import_all_warnings(client: Client): restrictions = dataclasses.replace( SandboxRestrictions.default, @@ -693,6 +748,18 @@ async def test_workflow_sandbox_import_suppress_warnings(client: Client): assert len(recorder) == 0, "Expected no warnings to be issued" +async def test_workflow_sandbox_passthrough_from_import_of_sibling_module( + client: Client, +): + async with new_worker(client, FromImportPassthroughWorkflow) as worker: + module_id = await client.execute_workflow( + FromImportPassthroughWorkflow.run, + id=f"workflow-{uuid.uuid4()}", + task_queue=worker.task_queue, + ) + assert module_id == id(stateful_module) + + def _assert_expected_warnings( recorder: pytest.WarningsRecorder, expected_warnings: set[str] ): diff --git a/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py b/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py new file mode 100644 index 0000000000..a314c8794d --- /dev/null +++ b/tests/worker/workflow_sandbox/testmodules/from_import_workflow.py @@ -0,0 +1,11 @@ +from temporalio import workflow + +with workflow.unsafe.imports_passed_through(): + from tests.worker.workflow_sandbox.testmodules import stateful_module + + +@workflow.defn +class FromImportPassthroughWorkflow: + @workflow.run + async def run(self) -> int: + return id(stateful_module) diff --git a/tests/worker/workflow_sandbox/testmodules/main_module_workflow.py b/tests/worker/workflow_sandbox/testmodules/main_module_workflow.py new file mode 100644 index 0000000000..3bda180175 --- /dev/null +++ b/tests/worker/workflow_sandbox/testmodules/main_module_workflow.py @@ -0,0 +1,8 @@ +from temporalio import workflow + + +@workflow.defn +class MainModuleWorkflow: + @workflow.run + async def run(self) -> str: + return "hello" diff --git a/uv.lock b/uv.lock index e38d7687cb..a598112101 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 5 +revision = 3 requires-python = ">=3.11" resolution-markers = [ "python_full_version >= '3.15'", @@ -11,17 +11,17 @@ resolution-markers = [ ] [options] -exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values. +exclude-newer = "2026-10-30T23:59:12.555513Z" exclude-newer-span = "P2W" [options.exclude-newer-package] nexus-rpc = false -temporalio-deepagents = false -temporalio-google-adk = false temporalio-google-genai = false +temporalio-deepagents = false temporalio-langgraph = false -temporalio-langsmith = false temporalio-strands-agents = false +temporalio-langsmith = false +temporalio-google-adk = false [[package]] name = "aioboto3" @@ -1588,8 +1588,8 @@ name = "httpcore2" version = "2.13.1" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "h11" }, - { name = "truststore" }, + { name = "h11", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, + { name = "truststore", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/cb/f3/1db7aa2bc2524062192bb0e0323969492d1883152a232fe36eea65f4e35c/httpcore2-2.13.1.tar.gz", hash = "sha256:e0aa977abe17e69a3b820a24542a6fa88702676d83880b8d194dcd18408e5103", size = 68071, upload-time = "2026-09-23T07:47:22.372Z" } wheels = [ @@ -4399,8 +4399,8 @@ name = "secretstorage" version = "3.5.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "cryptography" }, - { name = "jeepney" }, + { name = "cryptography", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, + { name = "jeepney", marker = "python_full_version != '3.12.*' or sys_platform != 'emscripten'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" } wheels = [ @@ -4507,7 +4507,7 @@ wheels = [ [[package]] name = "temporalio" -version = "1.35.0" +version = "1.36.1" source = { virtual = "." } dependencies = [ { name = "nexus-rpc" }, @@ -4651,7 +4651,7 @@ dev = [ { name = "pydocstyle", specifier = ">=6.3.0,<7" }, { name = "pydoctor", specifier = ">=25.10.1,<26" }, { name = "pyright", specifier = "==1.1.414" }, - { name = "pytest", specifier = "~=9.0" }, + { name = "pytest", specifier = ">=9.0,<9.2" }, { name = "pytest-asyncio", specifier = ">=0.21,<0.22" }, { name = "pytest-cov", specifier = ">=6.1.1" }, { name = "pytest-flakefinder", specifier = ">=1.1.0" },