Skip to content
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

Documentation for how to use lockout key #120

Open
raphaelcervantes opened this issue Aug 6, 2020 · 1 comment
Open

Documentation for how to use lockout key #120

raphaelcervantes opened this issue Aug 6, 2020 · 1 comment

Comments

@raphaelcervantes
Copy link
Contributor

There is an abstract description of what the dripline lockout here: https://driplineorg.github.io/dripline/branches/dl3_develop/Use-Protocol.html#lockout

However, I didn't find it enough for me to figure out how to actually implement it in a data taking script. And there doesn't seem to be an example anywhere.

Can the documentation provide a minimal example?

Here is something of a minimal example I'm trying to get to work:

dl-agent ... cmd peaches lock
somehow grab the lockout_key
dl-agent ... -k lockout_key set peaches 25
dl-agent ... -k lockout_key cmd peaches unloack

@raphaelcervantes
Copy link
Contributor Author

raphaelcervantes commented Aug 6, 2020

This combination worked.

dl-agent --auth-file /etc/rabbitmq-secret/authentications.json -b rabbitmq-app cmd peaches -s lock
dl-agent --auth-file /etc/rabbitmq-secret/authentications.json -b rabbitmq-app -k ccd288e7-a6d7-4685-bcf1-948f4ddf284a set peaches 25
dl-agent --auth-file /etc/rabbitmq-secret/authentications.json -b rabbitmq-app -k ccd288e7-a6d7-4685-bcf1-948f4ddf284a cmd peaches -s unlock

Now trying to figure out how to do that with the python interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant