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

Output error or warning if ipdevpoll job plugins are configured in non-recommended order #3256

Open
lunkwill42 opened this issue Dec 13, 2024 · 1 comment

Comments

@lunkwill42
Copy link
Member

          For a follow-up PR you could make a validation error if this is spotted when reading/validating the config file.

Originally posted by @hmpf in #3254 (comment)

@lunkwill42
Copy link
Member Author

Users are free to configure plugins to run in whatever order they like in ipdevpoll.conf, but sometimes plugins will have some preference or dependency on another plugins that would make it a bad idea to run them in random order.

Perhaps we need a system whereby a plugin can declare a preferred run-order compared to another, which could be used by ipdevpoll to refuse to start if they are not configured in that order in the config file.

The original suggestion was to make this a configuration error, i.e. make ipdevpoll refuse to start if the configuration is not up to snuff. I might also suggest then to add a command line option to convert plugin order errors to warnings, allowing the program to start regardless, just logging a warning for every "violation".

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