You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Kestra with file watching enabled (Micronaut IO watch), flows containing variables with certain patterns can enter an infinite loop of file rewrites. This causes the flow to be continuously rewritten with identical versions, flooding the revisions history in the UI.
The failing flow above is from the Data Engineering Zoomcamp 2025's Kestra contribution section. The original flow works fine in the course material since it doesn't use the file sync configuration. The issue only became apparent when implementing the same flow in a local development environment with file watching enabled.
You can verify the original working flow in the course repository, where the Docker Compose configuration doesn't include the Micronaut file watch settings, thus avoiding this bug.
Error Logs
2025-01-21 03:05:38,164 INFO jdbc-queue-FlowWithSource_0 i.k.c.s.FileChangedEventListener Flow myflow_with_error has been written to file /flows/company.team_myflow_with_error.yml
2025-01-21 03:05:38,168 INFO standalone i.k.c.s.FileChangedEventListener Flow myflow_with_error from file company.team_myflow_with_error.yml has been created or modified
[... continuous loop of similar messages ...]
Impact
Floods revision history with identical versions
Creates unnecessary file system operations
Makes it difficult to track actual changes to flows
Affects local development workflow
Current Workarounds
Disable file watching
Change variable order (works in some cases)
Additional Notes
Issue only occurs with file watching enabled
Other flows without these variable patterns work normally
Environment
Reproduction Steps
Set up Kestra using the Docker Compose configuration below
Describe the issue
When using Kestra with file watching enabled (Micronaut IO watch), flows containing variables with certain patterns can enter an infinite loop of file rewrites. This causes the flow to be continuously rewritten with identical versions, flooding the revisions history in the UI.
Example 1: Variables with Prefix Relationship
Failing Case:
Working Case (only changed variable order):
Example 2: More Complex Case
Failing Case (Order doesn't fix the issue):
The failing flow above is from the Data Engineering Zoomcamp 2025's Kestra contribution section. The original flow works fine in the course material since it doesn't use the file sync configuration. The issue only became apparent when implementing the same flow in a local development environment with file watching enabled.
You can verify the original working flow in the course repository, where the Docker Compose configuration doesn't include the Micronaut file watch settings, thus avoiding this bug.
Error Logs
Impact
Current Workarounds
Additional Notes
Environment
Reproduction Steps
Docker Compose Configuration
The text was updated successfully, but these errors were encountered: