[INSTRM-713] Add wait-for-tron and wait-for-actor scripts Created: 17/Jul/19 Updated: 06/Jul/21 |
|
| Status: | Open |
| Project: | Instrument control development |
| Component/s: | ics_launch |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Normal |
| Reporter: | cloomis | Assignee: | cloomis |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | SPS, Subaru | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Story Points: | 1 |
| Description |
|
In order for ics_launch to be useful for a full system boot, various actors will need to wait for the tron hub to come up. Wrap that. And in a few cases (and actually just for convenience), it will be useful to wait until some actor is running before launching something. Both cases can I think be handled with minor adaptations of oneCmd.py hub actors. That, unfortunately, depends on tron_actorcore, so purity will have to be set aside. |
| Comments |
| Comment by cloomis [ 19/Nov/19 ] |
|
And maybe a waitForDatabase before we start the archiver or even tron. Am a little worried about that: yes, the archiver database is important, but its absence should not stop MHS (operations!) from starting after some big mess. |
| Comment by cloomis [ 06/Jul/21 ] |
|
Bump. The connection to tron itself is not controlled by the time limit, grr, but something based on the following should work: alive=0 while [ ! $alive ]; do nc -z mhs-ics 9877 alive=$? done running=0 while [ ! $running ]; do oneCmd.py --timeLim=5 hub actors running=$? done |