-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Session Job Handling and Heartbeat Mechanism (#168)
* Enhance Session Job Handling and Heartbeat Mechanism 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]> * Override only when --conf excludeJobIds is not empty and excludeJobIds does not contain currentJobId. Signed-off-by: Kaituo Li <[email protected]> * reformat code Signed-off-by: Kaituo Li <[email protected]> --------- Signed-off-by: Kaituo Li <[email protected]>
- Loading branch information
Showing
4 changed files
with
82 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters