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

代码执行 #1656

Open
danta7 opened this issue Nov 18, 2024 · 6 comments
Open

代码执行 #1656

danta7 opened this issue Nov 18, 2024 · 6 comments

Comments

@danta7
Copy link

danta7 commented Nov 18, 2024

image
客户端调用Singup 这部分代码为什么不会被执行;

@Barenboim
Copy link
Contributor

Barenboim commented Nov 18, 2024

你好。你这个方式是计划使用异步的吧? 那么应该是 :

auto *signup_task = client.create_Signup_task(...);
signup_task->serialize_input(&signup_req);
series->push_back(signup_task);

大概是这个结构。

@Barenboim
Copy link
Contributor

另外,有个重要问题,没有必要产生一个临时的client。client合局唯一就可以了。

@danta7
Copy link
Author

danta7 commented Nov 18, 2024

clent.Singup()函数可以在哪个时间段调用呢

@Barenboim
Copy link
Contributor

你好。你是不是接手的项目?感觉你对workflow的机制不是太了解,但又同时使用了wfrest和srpc。

你可以先看一遍workflow项目的文档,运行一下示例,才能理解任务的执行时机以及server回复时机。可以看一看tutorial-05-http_proxy的例子。srpc相关的,可以看一下srpc里关于如何与workflow结合使用的文档。

@danta7
Copy link
Author

danta7 commented Nov 18, 2024

是的,第一次使用,现在好像就是想成功调用这个client下的signup函数,感谢指导

@Barenboim
Copy link
Contributor

按我上面的方式是可以的。产生signup任务,然后push_back到series里。

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

2 participants