Skip to content

配置工作流超时设置(Configure workflow timeout settings)#

工作流在此时间(以秒为单位)后超时并被取消。如果工作流在主进程中运行,会发生软超时(在当前节点完成后生效)。如果工作流在其自身进程中运行,n8n 会先尝试软超时,然后在等待给定超时持续时间的五分之一后终止该进程。

🌐 A workflow times out and gets canceled after this time (in seconds). If the workflow runs in the main process, a soft timeout happens (takes effect after the current node finishes). If a workflow runs in its own process, n8n attempts a soft timeout first, then kills the process after waiting for a fifth of the given timeout duration.

EXECUTIONS_TIMEOUT 的默认值是 -1。例如,如果你想将超时时间设置为一小时:

1
export EXECUTIONS_TIMEOUT=3600

你还可以为每个工作流单独设置最大执行时间(以秒为单位)。例如,如果你想将最大执行时间设置为两小时:

🌐 You can also set maximum execution time (in seconds) for each workflow individually. For example, if you want to set maximum execution time to two hours:

1
export EXECUTIONS_TIMEOUT_MAX=7200
Refer to Environment variables reference for more information on these variables.