Skip to content

Conversation

@knopers8
Copy link
Collaborator

This commit splits trg.Cleanup() into two calls which should be used subsequently instead of trg.Cleanup. Thanks to this, the GUIs can listen to kafka events for a specific operationName ("trg.EnsureRunStop") for trigger stop timestamp. We preferred to avoid having the GUIs hunt for operationStep "perform TRG call: RunStop", which seems to be a message targeted for humans and could be more prone to change, thus breaking behaviour in GUIs.

Fixes OCTRL-1017.

This commit splits trg.Cleanup() into two calls which should be used subsequently instead of trg.Cleanup.
Thanks to this, the GUIs can listen to kafka events for a specific operationName ("trg.EnsureRunStop") for trigger stop timestamp.
We preferred to avoid having the GUIs hunt for operationStep "perform TRG call: RunStop", which seems to be a message targeted for humans and could be more prone to change, thus breaking behaviour in GUIs.

Fixes OCTRL-1017.
Copy link
Collaborator

@justonedev1 justonedev1 left a comment

Choose a reason for hiding this comment

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

You are commenting that you are splitting TRG cleanup, but I don't see something being split, just that you are adding new two calls. Is it on purpose or do I just misunderstand?

@knopers8
Copy link
Collaborator Author

It's for backwards-compatibility and easier revert. The old one is marked as obsolete and I would remove it once we see all is fine in production.

@justonedev1
Copy link
Collaborator

Ah, okay. I overlooked the obsolete comment, sorry

@knopers8 knopers8 merged commit 1cfa87d into AliceO2Group:master May 20, 2025
2 checks passed
@knopers8 knopers8 deleted the trg-split-cleanup branch May 20, 2025 12:58
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.

2 participants