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

Save QMGR state in YAML file - Useful for parsing MQSC #110

Open
JamRamPage opened this issue Aug 7, 2024 · 0 comments
Open

Save QMGR state in YAML file - Useful for parsing MQSC #110

JamRamPage opened this issue Aug 7, 2024 · 0 comments

Comments

@JamRamPage
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Currently, queue_manager.py runs statelessly, involves various, occasionally complicated checks to identify the system state of the target machine (existing QMGRs, started/stopped etc). The code is therefore relatively complex.

For example, queue_manager.py's run_mqsc_file method currently only runs the mqsc it is given.

Describe the solution you'd like
We should save the qmgr's state in a yaml file stored on the target machine, which the code can refer to.
(Uses include, for example, with simple MQSC commands such as "START QMGR", "STOP QMGR", etc, we can check if they are required before having to run run_mqsc_file), which may make the code more readable.

Describe alternatives you've considered
Leaving the code as-is may actually (depending on the stage of process) make it more readable.
However this is unlikely as support for parsing more MQSC commands is added.
We could start by just saving a yaml file that we don't use in our code, helping users check what setup they currently have.

Additional context
As more features are added with #109 and other similar issues, we can extend this to work with objects such as queues and channels.

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