Skip to content
Snippets Groups Projects
Commit c1992c6d authored by Krzysztof Mochocki's avatar Krzysztof Mochocki
Browse files

Update communication settings for nodes

parent 5f5a7a6b
No related branches found
No related tags found
1 merge request!246Clive integration related fixes
from __future__ import annotations from __future__ import annotations
from datetime import timedelta
from typing import TYPE_CHECKING, Any, cast from typing import TYPE_CHECKING, Any, cast
from beekeepy import Settings from beekeepy import Settings
...@@ -16,7 +17,10 @@ if TYPE_CHECKING: ...@@ -16,7 +17,10 @@ if TYPE_CHECKING:
class BaseNode(UserHandleImplementation, Hived): class BaseNode(UserHandleImplementation, Hived):
def __init__(self, *, name: str, handle: NodeHandleBase | None = None) -> None: def __init__(self, *, name: str, handle: NodeHandleBase | None = None) -> None:
self.__name = context.names.register_numbered_name(name) self.__name = context.names.register_numbered_name(name)
super().__init__(handle=handle, settings=Settings()) super().__init__(handle=handle, settings=Settings(
period_between_retries=timedelta(seconds=0.5),
max_retries=8,
))
def __str__(self) -> str: def __str__(self) -> str:
return self.__name return self.__name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment