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

Enhance Session Job Handling and Heartbeat Mechanism #168

Merged
merged 3 commits into from
Nov 19, 2023
Merged

Enhance Session Job Handling and Heartbeat Mechanism #168

merged 3 commits into from
Nov 19, 2023

Conversation

kaituo
Copy link
Collaborator

@kaituo kaituo commented Nov 17, 2023

Description

This commit introduces two key improvements:

  1. An initial delay is added to start the heartbeat mechanism, reducing the risk of concurrent update conflicts.
  2. The 'jobId' in the session store is updated at the beginning to properly manage and evict old jobs for the same session.

Testing Performed:

  1. Manual sanity testing was conducted.
  2. It was ensured that old jobs eventually exit after a new job for the same session starts.
  3. The functionality of the heartbeat mechanism was verified to still work effectively.

Issues Resolved

#162
#159
#145

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This commit introduces two key improvements:
1. An initial delay is added to start the heartbeat mechanism, reducing the risk of concurrent update conflicts.
2. The 'jobId' in the session store is updated at the beginning to properly manage and evict old jobs for the same session.

Testing Performed:
1. Manual sanity testing was conducted.
2. It was ensured that old jobs eventually exit after a new job for the same session starts.
3. The functionality of the heartbeat mechanism was verified to still work effectively.

Signed-off-by: Kaituo Li <[email protected]>
…s does not contain currentJobId.

Signed-off-by: Kaituo Li <[email protected]>
@penghuo
Copy link
Collaborator

penghuo commented Nov 18, 2023

format code using sbt scalafmtAll

Signed-off-by: Kaituo Li <[email protected]>
@kaituo
Copy link
Collaborator Author

kaituo commented Nov 18, 2023

format code using sbt scalafmtAll

formatted.

@penghuo penghuo merged commit 6f16801 into main Nov 19, 2023
@kaituo kaituo deleted the jobId2 branch November 28, 2023 09:42
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