How an entity runs: an idle entity stops after max_idle_time
(the sharding default when None), at most concurrency requests
at once, mailbox_capacity requests waiting (the sharding default
when None); a defect ends every request of the entity unless
disable_fatal_defects, and the entity restarts on the
defect_retry_policy.
Attributes#
| Attribute | Type | Description |
|---|---|---|
max_idle_time | Duration | None = None | |
concurrency | Concurrency = 1 | |
mailbox_capacity | Concurrency | None = None | |
mailbox_metrics | bool | None = None | |
disable_fatal_defects | bool = False | |
defect_retry_policy | Schedule[Any, Any, Any, Any] | None = None | |
span_attributes | Mapping[str, str] = field(default_factory=(dict[str, str])) |
Functions#
__init__#
__init__(*, max_idle_time=None, concurrency=1, mailbox_capacity=None, mailbox_metrics=None, disable_fatal_defects=False, defect_retry_policy=None, span_attributes=dict[str, str]()) -> None| Parameter | Type | Description |
|---|---|---|
max_idle_time | Duration | None = None | |
concurrency | Concurrency = 1 | |
mailbox_capacity | Concurrency | None = None | |
mailbox_metrics | bool | None = None | |
disable_fatal_defects | bool = False | |
defect_retry_policy | Schedule[Any, Any, Any, Any] | None = None | |
span_attributes | Mapping[str, str] = dict[str, str]() |