-
Notifications
You must be signed in to change notification settings - Fork 57
Ensure trg.RunStop happens strictly before the O² stop timestamp #670
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
Conversation
|
Hi @teo, what was the rationale and context behind this change? |
According to the change in AliceO2Group/ControlWorkflows#670
According to the change in AliceO2Group/ControlWorkflows#670
|
@teo ping ⬆️ |
|
@vascobarroso do you know? ⬆️ |
|
@knopers8 during the migration of AliECS/bookkeeping communication from gRPC to kafka we noticed that the TRG stop was not happening before the O2 stop. I believe this change ensures that TRG stop is strictly before O2 stop (as it should be). |
|
@vascobarroso isn't it enough if TRG stop happens before run end completion time (i.e. end of end of run)? O2 stop is the start of end of run, so to me, anything that contributes to the end of run, should happen after that. |
|
@knopers8 what we want to ensure is that TRG is stopped before we begin the stop of O2 processes (e.g. readout) to ensure that the dataflow is terminated in the correct order. Or in other words, when we ask readout to transition from RUNNING to CONFIGURED, the trigger should already be stopped. |
|
@vascobarroso Then this change was not needed. As you can see in the documentation, negative and positive hooks for If you saw this is not respected, it's a bug and it should be investigated. |
|
@knopers8 indeed I did not actually see and compare the state transitions. What I saw was that the O2 stop time was sometimes earlier than the TRG stop time in bookkeeping. |
No description provided.