pynenc_mongo.conf.config_orchestrator¶
Module Contents¶
Classes¶
MongoDB-specific configuration for the orchestrator. |
API¶
- class pynenc_mongo.conf.config_orchestrator.ConfigOrchestratorMongo(config_values: Optional[dict[str, Any]] = None, config_filepath: Optional[str] = None)[source]¶
Bases:
pynenc.conf.config_orchestrator.ConfigOrchestrator,pynenc_mongo.conf.config_mongo.ConfigMongoMongoDB-specific configuration for the orchestrator.
Inherits all settings from ConfigOrchestrator.
- Variables:
stale_lock_threshold_seconds (ConfigField[float]) – Maximum age in seconds for a transition lock claim before it is considered stale. When a worker crashes while holding a lock, its claim will exceed this threshold and be automatically cleared by the next worker that attempts the same transition. The lock only protects a very fast read-validate-write cycle, so this value should be kept low. Defaults to 5.0.
lock_max_retries (ConfigField[int]) – Maximum number of retry attempts to acquire the transition lock before raising InvocationStatusRaceConditionError. Defaults to 3.
lock_retry_base_delay (ConfigField[float]) – Base delay in seconds between lock retry attempts, multiplied by the attempt number for linear backoff. Defaults to 0.05.
Initialization
- stale_lock_threshold_seconds¶
‘ConfigField(…)’
- lock_max_retries¶
‘ConfigField(…)’
- lock_retry_base_delay¶
‘ConfigField(…)’