pcdshub / whatrecord

EPICS IOC meta information tool
https://pcdshub.github.io/whatrecord/
Other
8 stars 6 forks source link

TwinCAT/pytmc plugin does not dump data for offline/serverless usage #174

Open klauer opened 1 year ago

klauer commented 1 year ago

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

Context

Testing offline mode in #162