Skip to content

Conversation

knopers8
Copy link
Collaborator

WIP until we manage to test it with George.

@knopers8 knopers8 requested a review from justonedev1 as a code owner October 10, 2025 15:26
@knopers8 knopers8 changed the title WIP [OCTRL-1049] Stop runs upon beam dump [OCTRL-1049] Stop runs upon beam dump Oct 14, 2025
@knopers8
Copy link
Collaborator Author

@justonedev1 I confirmed it works, it's ready for review.

@knopers8 knopers8 changed the title [OCTRL-1049] Stop runs upon beam dump [OCTRL-1029] Stop runs upon beam dump Oct 14, 2025
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.

are the todos supposed to be left in the code?

func (p *Plugin) GetData(_ []any) string {
p.mu.Lock()
defer p.mu.Unlock()
b, _ := json.Marshal(&p.currentState) // todo see if this works like that
Copy link
Collaborator

Choose a reason for hiding this comment

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

does it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

it did not, i rewrote it as it is done in the BKP plugin, that works.

}

func (p *Plugin) Destroy() error {
// todo add mutex?
Copy link
Collaborator

Choose a reason for hiding this comment

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

when is this todo supposed to happen?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

mutex added

@knopers8
Copy link
Collaborator Author

are the todos supposed to be left in the code?

I forgot about them, i will address them or remove in this PR.

A necessary building block for OCTRL-1049
The updates come from ALICE LHC DIP client. Work towards OCTRL-1049.

Eventually, this plugin will also allow to get rid of BKP.RetrieveFillInfo call and consume Fill information without going through BKP.
A new "stop_at_beam_dump" flag allows to request an automatic STOP_ACTIVITY when we recognize that LHC dumped beams.

Closes OCTRL-1049
@knopers8
Copy link
Collaborator Author

@justonedev1 it should be all good now.

@knopers8 knopers8 merged commit faa6de6 into AliceO2Group:master Oct 15, 2025
3 checks passed
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