-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocking job take call means 5-sec debounce no longer needed (#366)
Fix: This was causing unnecessary delays in serverless workers. Refactored rp_job.get_job to work well under pause and unpause conditions. More debug lines too. Refactored rp_scale.JobScaler to handle shutdowns where it cleans up hanging tasks and connections gracefully. Better debug lines. Fixed rp_scale.JobScaler from unnecessary long asyncio.sleeps made before considering the blocking get_job calls. Improved worker_state's JobProgress and JobsQueue to timestamp when jobs are added or removed. Incorporated the lines of code in worker.run_worker into rp_scale.JobScaler where it belongs and simplified to job_scaler.start() Fixed non-error logged as errors in tracer Updated unit tests mandating these changes
- Loading branch information
Showing
7 changed files
with
316 additions
and
269 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
Oops, something went wrong.