Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
klauer opened this issue Aug 25, 2023 · 0 comments
Open

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

klauer opened this issue Aug 25, 2023 · 0 comments

Comments

@klauer
Copy link
Contributor

klauer commented Aug 25, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant