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

[core] Make sure end of trigger is before end of run #512

Closed
wants to merge 1 commit into from

Conversation

knopers8
Copy link
Collaborator

No description provided.

Comment on lines +458 to +472

trgEndTimeMsUint, _ := strconv.ParseUint(grp.trgEndTimeMs, 10, 32)
o2EndTimeMsUint, _ := strconv.ParseUint(grp.runEndTimeMs, 10, 32)
if trgEndTimeMsUint == 0 {
log.WithField("call", "RunStop").
WithField("partition", envId).
WithField("level", infologger.IL_Ops).
Error("End of trigger time will be missing in the CCDB GRPECS. Please create a log entry in BK and tag PDP")
}
if trgEndTimeMsUint > o2EndTimeMsUint {
log.WithField("call", "RunStop").
WithField("partition", envId).
WithField("level", infologger.IL_Ops).
Errorf("End of trigger time will be later than end of run time (%d > %d) in the CCDB GRPECS. Please create a log entry in BK and tag PDP", trgEndTimeMsUint, o2EndTimeMsUint)
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chiarazampolli @shahor02 what do you think of these messages?

I have to test the other fixes yet, so the PR is not ready as a whole.

PDP requires that SOR < SOX < EOX < EOR. To achieve this, setting run_end_time_ms was moved so that there is an opportunity to run CTP run stop hooks before that.
@knopers8 knopers8 changed the title [WIP] [core] Make sure end of trigger is before end of run [core] Make sure end of trigger is before end of run Nov 28, 2023
@knopers8
Copy link
Collaborator Author

@teo Ready for review

it goes with AliceO2Group/ControlWorkflows#624

@knopers8 knopers8 closed this Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant