ステートマシン定義更新は実行中の Step Functions にも反映されるか教えてください
困っていた内容
Step Functions で長時間のワークフローを実行しています。
実行中のステートマシンがある状況で、ステートマシン定義を更新した場合、更新は実行中のステートマシンにも反映されますか。
実行中のステートマシンにも反映されるの?
既に開始されたステートマシンには反映されません。
UpdateStateMachine - AWS Step Functions
Running executions will continue to use the previous definition and roleArn.
ステートマシンの更新は更新以降の実行に影響します。更新時に既に開始されているステートマシンについては、引き続き更新前の定義で実行され、更新の内容は反映されません。
なお、ステートマシンの更新は結果整合性となり、更新直後に開始した実行は変更前の定義で実行される場合があります。
参考資料
State machine updates in AWS Step Functions are eventually consistent. All StartExecution calls within a few seconds will use the updated definition and roleArn (the Amazon Resource Name for the IAM role). Executions started immediately after calling UpdateStateMachine might use the previous state machine definition and roleArn.