Skip to content

Add heartbeat to python client, and use a task manager to control background tasks #6

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

Closed
wants to merge 10 commits into from

Conversation

zhenthebuilder
Copy link
Contributor

@zhenthebuilder zhenthebuilder commented Apr 17, 2024

Added heartbeat
Use taskmanager to manage task
added CI

@zhenthebuilder zhenthebuilder changed the title Zl/04 11 upgrade Add heartbeat to python client, and use a task manager to control background tasks Apr 17, 2024
@zhenthebuilder zhenthebuilder marked this pull request as ready for review April 17, 2024 19:10
@@ -34,6 +35,7 @@

CROSIS_PREFIX_BYTES = b"\x00\x00"
PID2_PREFIX_BYTES = b"\xff\xff"
HEART_BEAT_INTERVAL_SECS = 2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be configurable by the client/server

@@ -148,7 +165,7 @@ async def _handle_messages(self) -> None:
handshake_request = ControlMessageHandshakeRequest(
type="HANDSHAKE_REQ",
protocolVersion="v1",
instanceId=self._instance_id,
instanceId=self._client_id,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm we need both client and instance id

client is static, instance is random at startup

@blast-hardcheese
Copy link
Contributor

@zhenthebuilder Can this branch be deleted?

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.

3 participants