-
Notifications
You must be signed in to change notification settings - Fork 23
[OCTRL-1029] Stop runs upon beam dump #754
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
dc2eb1f
to
3d9f8e4
Compare
@justonedev1 I confirmed it works, it's ready for review. |
3d9f8e4
to
1790592
Compare
There was a problem hiding this 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?
core/integration/lhc/plugin.go
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it?
There was a problem hiding this comment.
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.
core/integration/lhc/plugin.go
Outdated
} | ||
|
||
func (p *Plugin) Destroy() error { | ||
// todo add mutex? |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mutex added
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
1790592
to
8e67e58
Compare
@justonedev1 it should be all good now. |
WIP until we manage to test it with George.