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

Bidirectional linking of workflows through activity #534

Open
9 tasks
bergundy opened this issue Sep 10, 2024 · 0 comments
Open
9 tasks

Bidirectional linking of workflows through activity #534

bergundy opened this issue Sep 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@bergundy
Copy link
Member

Is your feature request related to a problem? Please describe.

Users often start workflows from an activity or local activity for various reasons instead of using child workflows.
The major downside to this approach is that they lose the relationship between the "parent" and "child workflows.

Describe the solution you'd like

With Nexus, we added a way to add links to history events. The approach is not specific to Nexus though and can be leveraged to link workflows started from an activity using a Temporal client.

It's debatable whether links should automatically be established when using a client from an activity or this should be opt-in.

Additional context

We may want to wait until we implement #203 in SDKs to provide a wrapped client that will automatically link.
Note that links are not exclusively meant for starting workflows, signals and updates can also be linked.
Links are bidirectional, which means the local activity marker event or ActivityTaskCompleted events should include a link back from any Temporal primitives initiated by the activity. We will need to change the RespondActivityTaskCompleted (and RespondActivityTaskCompletedById APIs to accept links.

There should also be a server / SDK side config to limit the number of links tracked by a single activity.

Per-SDK Tickets

  • Go -
  • Java -
  • Core -
  • TypeScript -
  • Python -
  • .NET -
  • Ruby
  • PHP -
  • Temporal CLI -
@bergundy bergundy added the enhancement New feature or request label Sep 10, 2024
@bergundy bergundy changed the title Bidirectional liking of workflows through activity Bidirectional linking of workflows through activity Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant