Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions platform/tasktypes/external_review.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,10 @@ const flowIDSep = "-"
// dispatchFlowID is the ID of the flow taskID starts on the other side to run
// workflowID: one per task and workflow, so a task can start several of the other
// side's workflows, and a retried dispatch names the same flow. A step that runs again
// replies on the other side's token: a second dispatch of the same workflow from the
// same task names the flow already started.
// in a loop must reply on the other side's token rather than dispatch again: it has a
// new callbackToken, but a second dispatch of the same workflow from the same task
// names the flow already started, which the other side returns still holding the first
// token, so its decision would get 409 and the step would never complete.
func dispatchFlowID(taskID, workflowID string) string {
return taskID + flowIDSep + workflowID
}
Expand Down
Loading