sdk-go icon indicating copy to clipboard operation
sdk-go copied to clipboard

[Feature Request] Add ability to support passing sessions from parent to child wf

Open tsurdilo opened this issue 3 years ago • 3 comments

Feature request is to add ability to support passing sessions from parent to child workflow. The sessions should still be opened and closed by the parent. Asking just for ability to pass them to child while open.

tsurdilo avatar Aug 17 '22 23:08 tsurdilo

I just realized you can do this with recreate session. So in the parent workflow you call token := workflow.GetSessionInfo(sessionCtx).GetRecreateToken(), then pass that token to the child, which can then call workflow.RecreateSession with that token.

@tsurdilo - Do you believe this solves the use case?

cretz avatar Aug 29 '22 19:08 cretz

Recreate session solves a different use case of opening a new session on the same computer. This feature request is to give ability to share session among multiple workflows while it is still open.

mfateev avatar Aug 29 '22 21:08 mfateev

Ah, true, ok that is not reuse but an actual recreation.

cretz avatar Aug 29 '22 21:08 cretz