Skip to content

Refactor JobRepository to remove wait timeouts. - #94

Merged
adeutscher merged 20 commits into
developfrom
issue/93/remove-wait-timeouts
Aug 23, 2026
Merged

Refactor JobRepository to remove wait timeouts.#94
adeutscher merged 20 commits into
developfrom
issue/93/remove-wait-timeouts

Conversation

@adeutscher

Copy link
Copy Markdown
Owner

This change deals with a long-standing code-smell in JobRepository. Two public methods, GetNextJobAsync and WaitForEmptyRepositoryAsync, involved wait calls on events with a 250ms timeout to re-poll the source of truth. While it was functional and didn't have a high performance cost, the implementation never sat well with me.

@adeutscher adeutscher self-assigned this Aug 22, 2026
@adeutscher adeutscher added the enhancement New feature or request label Aug 22, 2026
@adeutscher adeutscher linked an issue Aug 22, 2026 that may be closed by this pull request
@adeutscher adeutscher added the Cleanup Improve code quality label Aug 22, 2026
@adeutscher
adeutscher marked this pull request as ready for review August 23, 2026 01:05
@adeutscher

Copy link
Copy Markdown
Owner Author

Before I commit this, confirming that it was intentional to leave WaitForJobDemandAsync as-is for this branch. Even though it's also got a timeout, responsibility for the timeout is more of a problem for LoaderModeJobLoader. This shall be covered in #97 .

@adeutscher
adeutscher merged commit 377eec7 into develop Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cleanup Improve code quality enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address wait timeout limits in job repository

1 participant