Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_auxiliary_telescope
-
Labels:
-
Story Points:2
-
Epic Link:
-
Sprint:TSSW Sprint - Feb 18 - Mar 02
-
Team:Telescope and Site
Description
request_script.py is a utility script to interact with the queue. It was written some time ago with an old version of sal and when I did not have a clear idea where to put it. I will re-write the script using the newest version of SAL and will put in in ts_scriptqueue.
=============================================
The ui module contains two submodules; a model interface and a command line front end. The model hosts a global ui for the script queue and the front end provides the interface to interact with it (both input and output).
For the front end I'm using a the python cmd standard library, with the possibility to extend it to use cmd2. This gives user some nice capabilities like auto complete and helper. functions. One of the main issues with that library is that it is not asyncio friendly, so I had to do some workaround and rely on SAL to store the information until the user request it. The idea of having the process running all the time and rely on cmd is to recycle the remote to talk to the queue. The previous version was really slow since you had to subscribe to the remote every time you run the script.
I think this script will probably be a useful utility at early stages of interacting with the queue. I did not included tests for the ui modules. I think this could be a good addition for a next release, but I could also think about some simple tests to perform.
Also, updates timeouts for the script queue.
Attachments
Issue Links
- relates to
-
DM-18357 Improvements on request_script
- Done
PR in github: https://github.com/lsst-ts/ts_scriptqueue/pull/17