Expected Behavior
whatrecord server --dump-for-offline-usage test.json.gz should dump all TwinCAT information alongside everything else
Current Behavior
A quick test:
python -m whatrecord.bin.main server \
--script-loader "python -m whatrecord.bin.main iocmanager-loader /reg/g/pcds/pyps/config/${hutch}/iocmanager.cfg --limit ${limit}" \
--gateway-config /reg/g/pcds/gateway/config/ \
--dump-for-offline-usage "${hutch}-${limit}.json.gz"
reveals that the TwinCAT plugin subprocess tries to call back to the server to ask it for its IOCs.
The assumption was that the server would be running and its IOC list may change if new ones were found.
Possible Solution
- Provide plugins with the information they need to know at startup rather than requiring a client connection
Context
Testing offline mode in #162
Expected Behavior
whatrecord server --dump-for-offline-usage test.json.gzshould dump all TwinCAT information alongside everything elseCurrent Behavior
A quick test:
reveals that the TwinCAT plugin subprocess tries to call back to the server to ask it for its IOCs.
The assumption was that the server would be running and its IOC list may change if new ones were found.
Possible Solution
Context
Testing offline mode in #162