module documentation

Common code used in the Temporal SDK.

Class MetricCommon Base for all metrics.
Class MetricCounter Counter metric created by a metric meter.
Class MetricGauge Gauge metric created by a metric meter.
Class MetricGaugeFloat Gauge metric created by a metric meter.
Class MetricHistogram Histogram metric created by a metric meter.
Class MetricHistogramFloat Histogram metric created by a metric meter.
Class MetricHistogramTimedelta Histogram metric created by a metric meter.
Class MetricMeter Metric meter for recording metrics.
Class QueryRejectCondition Whether a query should be rejected in certain conditions.
Class RawValue Representation of an unconverted, raw payload.
Class RetryPolicy Options for retrying workflows and activities.
Class SearchAttributeIndexedValueType Server index type of a search attribute.
Class SearchAttributeKey Typed search attribute key representation.
Class SearchAttributePair A named tuple representing a key/value search attribute pair.
Class SearchAttributeUpdate Representation of a search attribute update.
Class TypedSearchAttributes Collection of typed search attributes.
Class WorkflowIDConflictPolicy How already-running workflows of the same ID are handled on start.
Class WorkflowIDReusePolicy How already-in-use workflow IDs are handled on start.
Type Variable SearchAttributeValueType Undocumented
Type Alias MetricAttributes Undocumented
Type Alias SearchAttributes Undocumented
Type Alias SearchAttributeValue Undocumented
Type Alias SearchAttributeValues Undocumented
Class _NoopMetric Undocumented
Class _NoopMetricCounter Undocumented
Class _NoopMetricGauge Undocumented
Class _NoopMetricGaugeFloat Undocumented
Class _NoopMetricHistogram Undocumented
Class _NoopMetricHistogramFloat Undocumented
Class _NoopMetricHistogramTimedelta Undocumented
Class _NoopMetricMeter Undocumented
Class _SearchAttributeKey Undocumented
Class _SearchAttributeUpdate Undocumented
Function _apply_headers Undocumented
Function _arg_or_args Undocumented
Function _type_hints_from_func Extracts the type hints from the function.
Function _warn_on_deprecated_search_attributes Undocumented
Variable _arg_unset Undocumented
Variable _non_user_defined_callables Undocumented
SearchAttributeValueType = (source)

Undocumented

Value
TypeVar('SearchAttributeValueType',
        str,
        int,
        float,
        bool,
        datetime,
        Sequence[str])
MetricAttributes: TypeAlias = (source)

Undocumented

Value
Mapping[str, Union[str, int, float, bool]]
SearchAttributes: TypeAlias = (source)

Undocumented

Value
Mapping[str, SearchAttributeValues]
SearchAttributeValue: TypeAlias = (source)

Undocumented

Value
Union[str, int, float, bool, datetime, Sequence[str]]
SearchAttributeValues: TypeAlias = (source)

Undocumented

Value
Union[List[str], List[int], List[float], List[bool], List[datetime]]
def _arg_or_args(arg: Any, args: Sequence[Any]) -> Sequence[Any]: (source)

Undocumented

def _type_hints_from_func(func: Callable) -> Tuple[Optional[List[Type]], Optional[Type]]: (source)

Extracts the type hints from the function.

Parameters
func:CallableFunction to extract hints from.
Returns
Tuple[Optional[List[Type]], Optional[Type]]Tuple containing parameter types and return type. The parameter types will be None if there are any non-positional parameters or if any of the parameters to not have an annotation that represents a class. If the first parameter is "self" with no attribute, it is not included.
def _warn_on_deprecated_search_attributes(attributes: Optional[Union[SearchAttributes, Any]], stack_level: int = 2): (source)

Undocumented

_arg_unset = (source)

Undocumented

_non_user_defined_callables = (source)

Undocumented