(this is looking at a previously discussed problem from a different angle)
I have a plugin where, when run interactively, I'd like the user to be informed at startup time if there is something wrong with the plugin's configuration.
However, if I'm running in the scheduler or REST API, I don't want to do anything (except maybe set a flag that my plugin can use later), because it is not a fatal problem.
Is there a 'clever' way to tell if I'm running in interactive or 'batch' mode ?