Skip to main content

Module runtime

Module runtime 

Source
Expand description

Runtime configuration and low-level Core worker building blocks.

These types are grouped here to keep Core-specific configuration separate from the SDK’s primary workflow and activity APIs. Create a crate::Runtime before connecting a client, then pass it to crate::Worker::new.

Modules§

autoscaling_options_builder
Tools for manipulating the type state of AutoscalingOptionsBuilder.
tokio_runtime_builder_builder
Tools for manipulating the type state of TokioRuntimeBuilderBuilder.
worker_tuner
Worker concurrency tuning. Worker concurrency tuning for SDK workers.

Structs§

AutoscalingOptions
Options for automatically scaling the number of concurrent task polls.
AutoscalingOptionsBuilder
Use builder syntax to set the inputs and finish with build().
CoreWorkerexperimental
A worker polls on a certain task queue
Runtime
Holds shared state and components used by Rust SDK workers.
RuntimeOptions
Configuration for the Rust SDK runtime. Construct with RuntimeOptions::builder.
RuntimeOptionsBuilder
Use builder syntax to set the inputs and finish with build_internal().
TokioRuntimeBuilder
Wraps a Tokio runtime builder so the SDK can install its per-thread telemetry state.
TokioRuntimeBuilderBuilder
Use builder syntax to set the inputs and finish with build().
WorkerConfigexperimental
Defines per-worker configuration options

Enums§

PollerBehavior
Controls how many concurrent task polls a worker issues.
WorkflowErrorType
Workflow-processing errors that may be configured to fail the workflow execution.