[PR #28136] chore: disable workflow logs auto-cleanup by default #31956

Closed
opened 2026-02-21 20:50:28 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/28136

State: closed
Merged: Yes


Summary

This PR changes the default value of WORKFLOW_LOG_CLEANUP_ENABLED from true to false across all configuration files.

Changes

  • api/configs/feature/__init__.py: Changed WorkflowLogConfig.WORKFLOW_LOG_CLEANUP_ENABLED default from True to False
  • api/.env.example: Changed WORKFLOW_LOG_CLEANUP_ENABLED from true to false

Note: docker/.env.example and docker/docker-compose.yaml already had the correct default value of false.

Motivation

Setting the default to false provides safer default behavior by:

  • Preventing unintended data loss for new installations
  • Giving users explicit control over when to enable log cleanup
  • Following the opt-in principle for data deletion features

Users who need automatic cleanup can enable it by setting WORKFLOW_LOG_CLEANUP_ENABLED=true in their configuration.

Fixes #28135

**Original Pull Request:** https://github.com/langgenius/dify/pull/28136 **State:** closed **Merged:** Yes --- ## Summary This PR changes the default value of `WORKFLOW_LOG_CLEANUP_ENABLED` from `true` to `false` across all configuration files. ## Changes - **api/configs/feature/__init__.py**: Changed `WorkflowLogConfig.WORKFLOW_LOG_CLEANUP_ENABLED` default from `True` to `False` - **api/.env.example**: Changed `WORKFLOW_LOG_CLEANUP_ENABLED` from `true` to `false` Note: `docker/.env.example` and `docker/docker-compose.yaml` already had the correct default value of `false`. ## Motivation Setting the default to `false` provides safer default behavior by: - Preventing unintended data loss for new installations - Giving users explicit control over when to enable log cleanup - Following the opt-in principle for data deletion features Users who need automatic cleanup can enable it by setting `WORKFLOW_LOG_CLEANUP_ENABLED=true` in their configuration. Fixes #28135
yindo added the pull-request label 2026-02-21 20:50:28 -05:00
yindo closed this issue 2026-02-21 20:50:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31956