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

contro-service: revert some logic related to false-positive emails #460

Merged
merged 1 commit into from
Oct 29, 2021

Conversation

tpalashki
Copy link
Contributor

Last batch of changes to handle false-positive notifications introduced
a logic that skips updating the last_job_termination_status of a data job
if it is NONE or null.

This was incorrect because of how we find the execution_id inside rules: by
cross-referencing to the last kube_job_status_start_time metric. In this case, if
the last execution terminated with an error and a new execution starts, we will
cross-reference the last termination status (error) with the new job execution
and will send a notification.

This commit reverts the old logic that sents the last_job_termination_status
to NONE when a new execution starts.

Testing done: unit tests

Signed-off-by: Tsvetomir Palashki [email protected]

…ails

Last batch of changes to handle false-positive notifications introduced
logic that skips updating the last_job_termination_status of a data job
if it is NONE or null.

This was incorrect because of how we find the execution_id inside rules: by
cross-referencing to the last kube_job_status_start_time metric. In this case, if
the last execution terminated with an error and a new execution starts, we will
cross-reference the last termination status (error) with the new job execution
and will send a notification.

This commit reverts the old logic that sents the last_job_termination_status
to NONE when a new execution starts.

Testing done: unit tests

Signed-off-by: Tsvetomir Palashki <[email protected]>
@tpalashki tpalashki enabled auto-merge (squash) October 29, 2021 11:24
@tpalashki tpalashki merged commit 934b6b2 into main Oct 29, 2021
@tpalashki tpalashki deleted the person/tpalashki/current branch October 29, 2021 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants