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

Assert that previously significant run stays significant #36

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

nothingface0
Copy link
Contributor

In some cases, runs which have been deemed significant, based on OMS data that RR receives, suddenly become non-significant after an update, due to data that has been removed or changed from the OMS side. This should, in principle, not happen.

This commit adds such an assertion to throw an Exception if this case arises. Without it, the code continues, and in most cases reaches the point where RR tries to delete data from its database (usually LS info), raising an error (Lumisections cannot be deleted). The assertion catches this a bit earlier, stopping with a more appropriate message.

This is probably not ideal, and this check could be placed even earlier.

In some cases, runs which have been deemed significant, based on
OMS data that RR receives, suddenly become non-significant on run
update, due to data that has been removed or changed from the OMS
side. This should not, in principle, happen.

This commit adds such an assertion to throw an Exception
if this case arises. Without it, the code continues, and in most
cases reaches the point where RR tries to delete data from its
database (usually LS info), raising an error (`Lumisections cannot
be deleted`). The assertion catches this a bit earlier,
stopping with a more appropriate message.

This is probably not ideal, and this check could be placed even
earlier.
@nothingface0 nothingface0 force-pushed the assert_if_run_is_suddenly_non_significant branch from a9cd483 to 8576d12 Compare November 5, 2024 17:43
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.

1 participant