Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ts_middleware
-
Labels:
-
Story Points:1
-
Epic Link:
-
Sprint:TSSW Sprint - Apr 11 - Apr 25
-
Team:Telescope and Site
-
Urgent?:No
Description
There is a sequencing issue in BaseCsc.start: it waits for the SalInfo to be started, then writes some topics and then transitions to the desired initial state. But it is common for subclasses to want to write topics before those state transitions occur.
Fix this by breaking start into two pieces: start and start_phase2. Move the handling of initial state to phase2.
Also improve SalLogHandler so messages can be logged from background threads.
Pull request: https://github.com/lsst-ts/ts_salobj/pull/233