olas-operate-middleware 0.10.19__py3-none-any.whl → 0.11.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/METADATA +3 -1
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/RECORD +30 -27
- operate/bridge/bridge_manager.py +10 -12
- operate/bridge/providers/lifi_provider.py +5 -4
- operate/bridge/providers/native_bridge_provider.py +6 -5
- operate/bridge/providers/provider.py +22 -87
- operate/bridge/providers/relay_provider.py +5 -4
- operate/cli.py +446 -168
- operate/constants.py +22 -2
- operate/keys.py +13 -0
- operate/ledger/__init__.py +107 -2
- operate/ledger/profiles.py +79 -11
- operate/operate_types.py +205 -2
- operate/quickstart/run_service.py +6 -10
- operate/services/agent_runner.py +5 -3
- operate/services/deployment_runner.py +3 -0
- operate/services/funding_manager.py +904 -0
- operate/services/health_checker.py +4 -4
- operate/services/manage.py +183 -310
- operate/services/protocol.py +392 -140
- operate/services/service.py +81 -5
- operate/settings.py +70 -0
- operate/utils/__init__.py +0 -29
- operate/utils/gnosis.py +79 -24
- operate/utils/single_instance.py +226 -0
- operate/wallet/master.py +221 -181
- operate/wallet/wallet_recovery_manager.py +5 -5
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/WHEEL +0 -0
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/entry_points.txt +0 -0
- {olas_operate_middleware-0.10.19.dist-info → olas_operate_middleware-0.11.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -36,10 +36,10 @@ from operate.services.manage import ServiceManager # type: ignore
|
|
|
36
36
|
class HealthChecker:
|
|
37
37
|
"""Health checker manager."""
|
|
38
38
|
|
|
39
|
-
SLEEP_PERIOD_DEFAULT =
|
|
39
|
+
SLEEP_PERIOD_DEFAULT = 5 # seconds
|
|
40
40
|
PORT_UP_TIMEOUT_DEFAULT = 300 # seconds
|
|
41
|
-
REQUEST_TIMEOUT_DEFAULT = 90
|
|
42
|
-
NUMBER_OF_FAILS_DEFAULT =
|
|
41
|
+
REQUEST_TIMEOUT_DEFAULT = 90 # seconds
|
|
42
|
+
NUMBER_OF_FAILS_DEFAULT = 60
|
|
43
43
|
|
|
44
44
|
def __init__(
|
|
45
45
|
self,
|
|
@@ -180,7 +180,7 @@ class HealthChecker:
|
|
|
180
180
|
f"[HEALTH_CHECKER] {service_config_id} not healthy for {fails} time in a row"
|
|
181
181
|
)
|
|
182
182
|
else:
|
|
183
|
-
self.logger.
|
|
183
|
+
self.logger.debug(
|
|
184
184
|
f"[HEALTH_CHECKER] {service_config_id} is HEALTHY"
|
|
185
185
|
)
|
|
186
186
|
# reset fails if comes healty
|