AWS 步骤函数保持执行多长时间 运行?

How much time does AWS step function keeps the execution running?

我是 AWS Step Function 的新手。我在后端创建了一个带有 Activity Worker 的基本步骤函数。如果执行仍未被 activity 工作人员选择,Step Function 会保持执行多长时间而不超时?

For how much time, does the Step Function keeps the execution alive and not time out if the execution is still not picked by the activity worker?

1 年

您可以在 activity 任务中指定 TimeoutSeconds 这也是一个 recommended way

"ActivityState": {
  "Type": "Task",
  "Resource": "arn:aws:states:us-east-1:123456789012:activity:HelloWorld",
  "TimeoutSeconds": 300,
  "HeartbeatSeconds": 60,
  "Next": "NextState"
}

Step 函数最多可以将任务保留在队列中 1 年。您可以在 this page.

上找到有关 Step Functions 限制的更多信息