indeedeng / iwf

iWF is a WorkflowAsCode microservice orchestration platform offering an orchestration coding framework and service for building resilient, fault-tolerant, scalable long-running processes
MIT License
537 stars 55 forks source link

Workaround for WaitForStateExecutionCompletion limitation -- use firstRunId instead workflowId for waitFor workflow #404

Closed longquanzheng closed 1 month ago

longquanzheng commented 4 months ago

See why : https://github.com/indeedeng/iwf/wiki/How-to-wait-for-a-workflow-state-to-complete

This required the new field from Temporal: https://github.com/temporalio/temporal/issues/6348

Update: Temporal has added this new field: https://github.com/temporalio/temporal/pull/6383

Make the change for Temporal, but not for Cadence. Use provided.GetBackendType for the check