Skip to content

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

@klauer

Description

@klauer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions