Skip to content

job: Assign scoped health to jobs added to scoped job groups #47

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

Merged
merged 1 commit into from
Mar 28, 2025

Conversation

dylandreimerink
Copy link
Member

Jobs can be added to a job group both before and after it has started. When adding a job group before it has started it is put in a queue and started on group start.

One of the parameters we pass in when the job starts is a health reporter. However, there was a bug where when you create a scoped job group, we would pass the health reporter of its parent to the job and not the health reporter of the scoped job group. We were doing it correctly for jobs added to the job group after it had started.

This commit fixes the bug enqueueing the health reporter along with the job when enqueueing before the job group has started and using the colocated health reporter to call the job on start.

Jobs can be added to a job group both before and after it has started.
When adding a job group before it has started it is put in a queue and
started on group start.

One of the parameters we pass in when the job starts is a health
reporter. However, there was a bug where when you create a scoped job
group, we would pass the health reporter of its parent to the job and
not the health reporter of the scoped job group. We were doing it
correctly for jobs added to the job group after it had started.

This commit fixes the bug enqueueing the health reporter along with the
job when enqueueing before the job group has started and using the
colocated health reporter to call the job on start.

Signed-off-by: Dylan Reimerink <[email protected]>
@dylandreimerink dylandreimerink requested a review from a team as a code owner March 28, 2025 12:36
@dylandreimerink dylandreimerink requested review from pippolo84 and removed request for a team March 28, 2025 12:36
@joamaki joamaki merged commit be36f84 into main Mar 28, 2025
1 check passed
@joamaki joamaki deleted the feature/fix-scoped-job-groups branch March 28, 2025 12:44
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