wrong config .env APP_MAX_EXECUTION_TIME #8657

Closed
opened 2026-02-21 18:26:53 -05:00 by yindo · 3 comments
Owner

Originally created by @strivezheng on GitHub (Feb 26, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

when i set the config fields,APP_MAX_EXECUTION_TIME
in the .env file, it says

  # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.
APP_MAX_ACTIVE_REQUESTS=0
APP_MAX_EXECUTION_TIME=0

but it's wrong:

File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 212, in __init__
    validated_self = self.__pydanti

APP_MAX_EXECUTION_TIME
  Input should be greater than 0 [type=greater_than, input_value='0', input_type=str]
  For further information visit https://errors.pydantic.dev/2.9/v/greater_than

✔️ Expected Behavior

0 means unlimited

Actual Behavior

File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 212, in init
validated_self = self.__pydanti

APP_MAX_EXECUTION_TIME
Input should be greater than 0 [type=greater_than, input_value='0', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/greater_than

Originally created by @strivezheng on GitHub (Feb 26, 2025). ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce when i set the config fields,APP_MAX_EXECUTION_TIME in the .env file, it says ``` # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer. APP_MAX_ACTIVE_REQUESTS=0 APP_MAX_EXECUTION_TIME=0 ``` but it's wrong: ``` File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 212, in __init__ validated_self = self.__pydanti APP_MAX_EXECUTION_TIME Input should be greater than 0 [type=greater_than, input_value='0', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/greater_than ``` ### ✔️ Expected Behavior 0 means unlimited ### ❌ Actual Behavior File "/app/api/.venv/lib/python3.12/site-packages/pydantic/main.py", line 212, in __init__ validated_self = self.__pydanti APP_MAX_EXECUTION_TIME Input should be greater than 0 [type=greater_than, input_value='0', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/greater_than
yindo added the 🐞 bug label 2026-02-21 18:26:53 -05:00
yindo closed this issue 2026-02-21 18:26:53 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 26, 2025):

@strivezheng Hello there! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together while we wait for a human maintainer.

The APP_MAX_EXECUTION_TIME configuration in the Dify application must be set to a positive integer greater than 0. Setting it to 0 is not allowed, as the application requires a positive value to define the maximum execution time. If you want to set a specific execution time, you can use a value like 1200 seconds, which is the default [1][2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 26, 2025): <!-- Greeting --> @strivezheng Hello there! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together while we wait for a human maintainer. <!-- Answer --> The `APP_MAX_EXECUTION_TIME` configuration in the Dify application must be set to a positive integer greater than 0. Setting it to 0 is not allowed, as the application requires a positive value to define the maximum execution time. If you want to set a specific execution time, you can use a value like `1200` seconds, which is the default <sup>[[1]](https://github.com/langgenius/dify/blob/main/docker/.env.example)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/configs/feature/__init__.py)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/64287e94-792a-4ecf-b3a5-fae11b381d97?feedback_type=other)</sup>
Author
Owner
@crazywoola commented on GitHub (Feb 26, 2025): https://github.com/langgenius/dify/blob/403e2d58b96794727789609e41505c33374f9079/api/configs/feature/__init__.py#L51-L63
Author
Owner

@crazywoola commented on GitHub (Feb 26, 2025):

> # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer.

APP_MAX_ACTIVE_REQUESTS

@crazywoola commented on GitHub (Feb 26, 2025): ``` > # The maximum number of active requests for the application, where 0 means unlimited, should be a non-negative integer. ``` APP_MAX_ACTIVE_REQUESTS
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8657