Add requirePersistence option to worker logGroomerSidecar#65884
Conversation
|
I actually favor #65852 over this alternative here. |
But this one can be done to v1-2 branch for compatiblity ?.. @ericxiao251 -> maybe you can change the base to |
Awesome, will wait for his response before changing the base branch :). |
I'd be okay, but we then need to add a small marker/note to the docs of the (new) parameter that this is only transitional for the chart v1.2x and will be fixed generally in chart 2.x |
5cd40a6 to
41e1586
Compare
Currently, the worker log groomer sidecar only renders when persistence is enabled (i.e., when using StatefulSets). This prevents using the log groomer on Deployments with emptyDir volumes for logs. This change adds a new `requirePersistence` option that defaults to `true` (preserving backwards compatibility). When set to `false`, the log groomer can be enabled regardless of whether persistence is enabled. This is useful for deployments that: - Use emptyDir for local logs with remote logging (S3, GCS, etc.) - Want to clean up local log files without using StatefulSets - Prefer Deployments over StatefulSets for workers Configuration: - `workers.logGroomerSidecar.requirePersistence: false` - `workers.celery.logGroomerSidecar.requirePersistence: false` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Updates test cases descriptions. Remove unrelated check in test.
Document that requirePersistence is transitional for chart 1.2x and will be removed in chart 2.x when log groomer works without persistence by default. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
41e1586 to
a698b77
Compare
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Ok I've added the notes, fixed the CI that were failing in |
jscheffl
left a comment
There was a problem hiding this comment.
Good for me. Also OK for others?
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
|
Nice work @ericxiao251 we actually needed this thx! |
Context
Currently, the worker log groomer sidecar only renders when
workers.persistence.enabledistrue(i.e., StatefulSet mode). This prevents using the log groomer on Deployments with emptyDir volumes for logs.This change adds a new
requirePersistenceoption that defaults totrue, preserving full backwards compatibility. When set tofalse, the log groomer can be enabled regardless of whether persistence is enabled.This is useful for deployments that:
Configuration
Backward Compatibility
This change is fully backwards compatible. The new
requirePersistenceoption defaults totrue, which preserves the existing behavior where log groomer only renders when persistence is enabled.persistenceenabledrequirePersistenceWas generative AI tooling used to co-author this PR?
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.