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。例如,如果你希望将超时时间设置为一小时:

¥EXECUTIONS_TIMEOUT default is -1. For example, if you want to set the timeout to one hour:

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.