-
Notifications
You must be signed in to change notification settings - Fork 15
Add restart_rssi action to pysmurf controller #868
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
|
We should probably also tag and upgrade |
|
I wasn't able to test the new action on the SLAC system without disrupting the running OCS agents. |
|
Looks good to me. |
BrianJKoopman
left a comment
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.
Agreed that a wrapped function in pysmurf for this would be better than the S._caput() call.
Any plans to test this somewhere, even at site, before we merge?
One comment below, but not super critical to add.
|
Note that this is an opportunity to deploy some new features in |
re testing: I haven't worked with OCS before and I was trying to figure out how to test it. I think you would have to update the code checked out by the crossbar and restart everything (?) This seemed like it could be disruptive |
It'll sort of depend on your lab setup. You could bring down a pysmurf-controller agent there, and start up this modified agent in its place, then run the new task and verify functionality. This certainly is disruptive if you're actively using the pysmurf-controller. Rolling back once testing is complete is generally straight forward though. For starting up the modified agent you can either build the image with the modified code in it, or run it directly on the host via something like: You'll need to change Building the docker image, you'd need to update the |
|
OK, thanks for the suggestions. Starting the |
From any host on the network that can access the crossbar server you can run: That will drop you into a python session with an
No changes are needed on the crossbar server. The crossbar server is a communication layer between the client you're spawning with the above command and the agent. So only the agent code needs to be updated as in my last post. |
|
Thanks! That was very helpful and in the end I was able to test the new agent task and make some fixes. I was able to run the command using |
Using
caputto directly access the register here is not ideal and it would probably be better to wrap this in a function inpysmurf. What do you think?Pending simonsobs/smurf_dockers#4 and simonsobs/smurf-streamer#43