mirror of https://github.com/dapr/docs.git
Rename `StartWorkflow` to `ScheduleWorkflow`
Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
parent
1bc5a32537
commit
36e4b24cfa
|
@ -921,7 +921,7 @@ func main() {
|
|||
// "start". This is useful for increasing the throughput of creating
|
||||
// workflows.
|
||||
// workflow.WithStartTime(time.Now())
|
||||
instanceID, err := wclient.StartWorkflow(ctx, "TestWorkflow", workflow.WithInstanceID("a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9"), workflow.WithInput(1))
|
||||
instanceID, err := wclient.ScheduleWorkflow(ctx, "TestWorkflow", workflow.WithInstanceID("a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9"), workflow.WithInput(1))
|
||||
if err != nil {
|
||||
log.Fatalf("failed to start workflow: %v", err)
|
||||
}
|
||||
|
@ -1008,7 +1008,7 @@ func main() {
|
|||
fmt.Printf("stage: %d\n", stage)
|
||||
|
||||
// Terminate workflow test
|
||||
id, err := wclient.StartWorkflow(ctx, "TestWorkflow", workflow.WithInstanceID("a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9"), workflow.WithInput(1))
|
||||
id, err := wclient.ScheduleWorkflow(ctx, "TestWorkflow", workflow.WithInstanceID("a7a4168d-3a1c-41da-8a4f-e7f6d9c718d9"), workflow.WithInput(1))
|
||||
if err != nil {
|
||||
log.Fatalf("failed to start workflow: %v", err)
|
||||
}
|
||||
|
|
|
@ -1827,7 +1827,7 @@ func main() {
|
|||
TotalCost: totalCost,
|
||||
}
|
||||
|
||||
id, err := wfClient.StartWorkflow(context.Background(), workflowName, workflow.WithInput(orderPayload))
|
||||
id, err := wfClient.ScheduleWorkflow(context.Background(), workflowName, workflow.WithInput(orderPayload))
|
||||
if err != nil {
|
||||
log.Fatalf("failed to start workflow: %v", err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue