Unlock Hook @exporter side #1492
-
Hi there, when I looked for hooks I only found the pytest hooks however there is code for the _unlock however I am not sure if this related to the client, coord or exporter? thanks for any answer. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As soon as you unlock the place, the user can't do any action on the place any longer, so by definition this won't work with the current design. I'd also like to avoid introducing the complexity to labgrid in the unlock step, I'd much rather have this solved via external scripting. For CI loops this is straightforward, before unlocking the device, reset it to a known good state. For interactive use this is more tricky, I don't have an immediate idea yet. |
Beta Was this translation helpful? Give feedback.
The exporter has no knowledge of a place as is, it only knows about resources a specific place acquired, so there is no way for the exporter to now when to run a hook. The place to resource mapping is only known on the coordinator side.
Labgrid has no idea when a user has left the building, we know when someone/something (a user, CI,…) has acquired a place, but we have no idea when who/whatever has acquired the place is done using it except for the release event, but at this point interaction with the target is no longer possible (since the resources are released).