langgenius / langgenius/dify

WORKFLOW_MAX_EXECUTION_TIME no longer takes effect after upgrading to v1.16.0, workflow forcibly interrupted at 1200s

Open
#39,602 2 comments 1 reaction 0 assignees View on GitHub
🐞 bug 1.16.0
Dominant language
TypeScript
Stars
156k
Forks
24.6k
Avg merge
20h 50m
Merged PRs (30d)
586

Description

### Self Checks

- [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542).
- [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general).
- [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones.
- [x] I confirm that I am using English to submit this report, otherwise it will be closed.
- [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
- [x] Please do not modify this template :) and fill in all the required fields.

### Dify version

v1.16.0

### Cloud or Self Hosted

Self Hosted (Docker)

### Steps to reproduce

Image

### ✔️ Expected Behavior

The environment variable WORKFLOW_MAX_EXECUTION_TIME should be respected to control the maximum execution duration of workflows. For example, if set to 3600 seconds, workflows should be allowed to run up to that limit without being interrupted prematurely.

### ❌ Actual Behavior

After upgrading to v1.16.0, WORKFLOW_MAX_EXECUTION_TIME is ignored. Workflows are now forcibly interrupted exactly at 1200 seconds (20 minutes) regardless of the configured value. No alternative variable or configuration method has been found to extend this limit.

Contributor guide

Open the contributing guide

Research direction

Start by searching the repository for WORKFLOW_MAX_EXECUTION_TIME and for the 1200-second limit, then trace how workflow execution limits are configured in the self-hosted Docker setup. Compare the v1.16.0 behavior with the expected configured value; done means a workflow can run up to the configured limit instead of being interrupted at 1200 seconds.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.