-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Connection and Upload Managers use config from Config Manager #280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: ndd-dev
Are you sure you want to change the base?
Conversation
|
Consider updating changelogs/pending-changelog.md with a summary of this change for the release notes. This is optional and non-blocking. |
1 similar comment
|
Consider updating changelogs/pending-changelog.md with a summary of this change for the release notes. This is optional and non-blocking. |
1337a94 to
d6c9e25
Compare
2877541 to
b9b1c58
Compare
StevenJacobs61
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| emitter.emit(Emitter.IS_CONNECTED, self._is_connected) | ||
|
|
||
| def start(self) -> None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just have to remember to execute start during integration
b9b1c58 to
a3008ad
Compare
StevenJacobs61
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/c
StevenJacobs61
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM w/c
0245989 to
c8d2150
Compare
c8d2150 to
0be2d74
Compare
| self._checker_thread: threading.Thread | None = None | ||
| self._offline_mode = offline_mode | ||
|
|
||
| emitter.emit(Emitter.IS_CONNECTED, self._is_connected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes that StateManager init before ConnectionManager. This is a race condition risk. The pyee.EventEmitter is a standard pub/sub pattern - events are NOT queued. If no listener is registered when the event fires, it's lost.
We need to make sure that StateManager gets the right state at init/start, can even directly read from config, if event is lost no problem.
| return | ||
| if self._running: | ||
| logger.warning("ConnectionManager already running") | ||
| return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit or lets note down or create a task in backlog
Since we're moving data daemon to asyncio, should this use asyncio.create_task() instead of spawning a thread.
0be2d74 to
65c90c6
Compare
65c90c6 to
d45c0a3
Compare
safi-baqri-n
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets consider off-line changes later, approving to enable rest of changes go though.
Features