Skip to content
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

bugfix/SK-850 | Sets client status to online in database when client connects #606

Merged
merged 3 commits into from
May 16, 2024

Conversation

stefanhellander
Copy link
Collaborator

Description

If a client disconnects and connects again before combiner registers it as offline, then controller updates status is db to "available", but combiner sees no change and client status is then stuck as "available" in database.

If a client and combiner goes down at a similar time, then the client is always listed as "online" if the combiner didn't have time to register the client disconnecting.

This PR fixes the first issue by setting the db status to online in TaskStream when the client reconnects. It partly addresses the second issue by cleaning up the status of previously connected clients when the combiner comes online again. Of course, if the combiner remains offline, then this issue is still there (could maybe be solved in the controller in that case)?

…lean up status of previously connected clients on startup.
@Wrede
Copy link
Member

Wrede commented May 16, 2024

working on review...don't merge

@stefanhellander stefanhellander merged commit 368850b into master May 16, 2024
11 checks passed
@stefanhellander stefanhellander deleted the bugfix/SK-850 branch May 16, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants