-
Notifications
You must be signed in to change notification settings - Fork 15
Support multi-app suborquestration #33
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
Conversation
| } | ||
|
|
||
| func WithAppID(targetAppID string) callActivityOption { | ||
| func WithActivityAppID(targetAppID string) callActivityOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary because the suborchestration and activity options live in the same task package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fine since we have not released an SDK version with the original func name. If that wasn't the case we should need to create an alias for backwards compat.
Signed-off-by: Albert Callarisa <albert@diagrid.io>
086bd65 to
979834e
Compare
| if es := event.GetExecutionStarted(); es != nil && event.GetRouter() != nil { | ||
| parentAppID = event.GetRouter().GetSource() | ||
| break | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it ever the case that there are multiple GetExecutionStarted? Should we not have a source/router type field on the ParentInstance to determine source app ID rather than searching in the event history?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, opened this PR adding this optional field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's now approved/merged, will do the changes to use this new field
| } | ||
|
|
||
| func WithAppID(targetAppID string) callActivityOption { | ||
| func WithActivityAppID(targetAppID string) callActivityOption { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be fine since we have not released an SDK version with the original func name. If that wasn't the case we should need to create an alias for backwards compat.
Signed-off-by: Albert Callarisa <albert@diagrid.io>
JoshVanL
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgmt
This PR adds support for calling sub-workflows across different AppIDs.
This feature has been implemented in activities here.