-
Notifications
You must be signed in to change notification settings - Fork 95
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
Using the asynchronous run method, the test found that the actual task was less than the original task. #272
Comments
Hey @zhuhaolin162, what exactly do you mean when you say "saltstack has fewer actual tasks than it does in concurrent situations"? How exactly do you use this method and what is the unexpected outcome vs. the expected? |
Test purpose : Test result: Test code: public static void main(String[] args) { Thank you for you help! @renner |
SaltClient.class
By using the following asynchronous run method, saltstack has fewer actual tasks than it does in concurrent situations, What should I do? Are there any configurations that are not configured correctly?
public CompletionStage<Map<String, Object>> run(String username, String password, AuthModule eauth, String client, Target target, String function, List args, Map<String, Object> kwargs) {
Map<String, Object> props = new HashMap();
props.put("username", username);
props.put("password", password);
props.put("eauth", eauth.getValue());
props.put("client", client);
props.putAll(target.getProps());
props.put("fun", function);
props.put("arg", args);
props.put("kwarg", kwargs);
List<Map<String, Object>> list = Collections.singletonList(props);
String payload = this.gson.toJson(list);
CompletionStage<Map<String, Object>> result = this.asyncHttpClient.post(this.uri.resolve("run"), payload, JsonParser.RUN_RESULTS).thenApply((s) -> {
return (Map)((List)s.getResult()).get(0);
});
return result;
}
The text was updated successfully, but these errors were encountered: