-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Inconsistency in master_call interface for Runner/Wheel clients #9324
Comments
Thanks for filing this. This broke in e1b4ef0. Edit: No it didn't. It was already broken there too ( |
@hunternet93 So I fleshed out the http://docs.saltstack.com/ref/clients/index.html That said, currently |
I edited the ticket description now that the problem has been clarified. The pull req is ready pending discussion. I will send it tomorrow. https://github.com/whiteinge/salt/compare/refactor-master_call |
The previous pull req was off-base since that part of Salt is very sensitive to blocking code (which runners are); everything there should be async. There is already a precedent for a synchronous interface wrapping an async call by watching the event bus in Since we're on the topic, there are other inconsistencies between the *Client() interfaces. It's not clear which methods support eauth and which don't. It's not always clear which methods are async and which are sync. Here's a short summary:
|
This is blocking a high-severity bug. Changing priority accordingly. |
Looks like a flurry of activity here but it's unclear if this is ready to be closed. @whiteinge? |
Ah, thanks. This can indeed be closed. Note, there's a problem with the master_call interface for runners. But that is, as they say, another issue. #15218 |
Thanks for the follow-up @whiteinge. Much appreciated! |
salt.runner.RunnerClient().master_call()
is async and only returns a JID.salt.wheel.WheelClient().master_call()
is sync and returns the full return.We should support both event-driven and non-event-driven interfaces, of course!
The text was updated successfully, but these errors were encountered: