Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attaching a logGroomerSidecar to dag processor #30623

Closed
wants to merge 69 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
5a6750b
Attaching a logGroomerSidecar to Dag Processor
Apr 13, 2023
4bba5d2
Update dagProcessor enabled false
Apr 13, 2023
5b32792
Update dagProcessor logGroomer value comments
Apr 14, 2023
1272cb2
Adding loggroomer test code to test-dag-processor.py
Apr 15, 2023
95e1abc
Adding line at the end of the code
Apr 17, 2023
916ffe8
locating extraContainers at the last
Apr 19, 2023
3e0ad8a
Remove gauge scheduler.tasks.running (#30374)
vincbeck Apr 13, 2023
f784f11
Recover from `too old resource version exception` by retrieving the l…
hussein-awala Apr 13, 2023
9f18fe4
docs: use correct import path for Dataset (#30617)
error418 Apr 13, 2023
f821be2
Speed up TaskGroups with caching property of group_id (#30284)
MarosMK Apr 13, 2023
0342fb7
Fix `TriggerDagRunOperator` with deferrable parameter (#30406)
dylanbstorey Apr 13, 2023
e9074fc
Fix failing SQS tests on moto upgrade (#30625)
potiuk Apr 13, 2023
1cefe93
fix possible race condition when refreshing DAGs (#30392)
blinkseb Apr 13, 2023
375fe30
Remove Norm and Hussein from the triage group (#30627)
jedcunningham Apr 13, 2023
ea988b2
Remove mysql-connector-python (#30487)
moiseenkov Apr 13, 2023
cea94b5
Better error message where non-compatible providers are not excluded …
potiuk Apr 13, 2023
5372eec
Updating the links to the Dataform product documentation to fix 404 r…
shanecglass Apr 13, 2023
be4e6a1
New AWS sensor — DynamoDBValueSensor (#28338)
mrichman Apr 14, 2023
c893062
Remove duplicate param docstring in EksPodOperator (#30634)
jlaneve Apr 14, 2023
baa1979
In `DockerOperator`, adding an attribute `tls_verify` to choose wheth…
oboki Apr 14, 2023
80daa98
Add `max_active_tis_per_dagrun` for Dynamic Task Mapping (#29094)
hussein-awala Apr 14, 2023
e06ad0a
Simplify logic to resolve tasks stuck in queued despite stalled_task_…
RNHTTR Apr 14, 2023
493994f
Display Video 360 cleanup v1 API usage (#30577)
Apr 14, 2023
60f0bad
Fix mapped tasks partial arguments when DAG default args are provided…
hussein-awala Apr 14, 2023
464e58f
First commit of OpenLineage provider. (#29940)
mobuchowski Apr 14, 2023
781c017
Add v2-6-test and v2-6-stable to codecov and protected branches (#30640)
ephraimbuddy Apr 14, 2023
38349f9
Adding configuration to control retry parameters for k8s api client (…
amoghrajesh Apr 14, 2023
8f384b6
fix(chart): webserver probes timeout and period. (#30609)
mikaeld Apr 14, 2023
13de1e2
Clarify release announcements on social media (#30639)
eladkal Apr 14, 2023
60c81db
DynamoDBHook - waiter_path() to consider `resource_type` or `client_t…
utkarsharma2 Apr 14, 2023
9f56de8
Improve task & run actions ux in grid view (#30373)
bbovenzi Apr 14, 2023
a10afd0
Add command to get DAG Details via CLI (#30432)
maahir22 Apr 14, 2023
8e17d22
When clearing task instances try to get associated DAGs from database…
sean-rose Apr 14, 2023
4244c6a
Organize Amazon providers docs index (#30541)
eladkal Apr 14, 2023
2732fde
preload airflow imports before dag parsing to save time (#30495)
vandonr-amz Apr 14, 2023
115f58b
Add delete inactive run functionality to databricks provider (#30646)
phanikumv Apr 14, 2023
efae7b9
Create audit_logs.rst (#30405)
rohan472000 Apr 14, 2023
056e9f8
Present affected task instances as table (#30633)
pierrejeambrun Apr 14, 2023
724eb34
Helm chart 1.9.0 has been released (#30649)
jedcunningham Apr 14, 2023
e69fcd1
Add 2.6.0b1 to issue template (#30652)
ephraimbuddy Apr 15, 2023
52c1bd6
add missing project_id in BigQueryGetDataOperator (#30651)
ying-w Apr 15, 2023
fbc07b3
Properly classify google_vendor package to google provider (#30659)
potiuk Apr 15, 2023
865b18e
Make pandas optional in workday calendar example (#30660)
potiuk Apr 15, 2023
ef7ea2f
Update Google Campaign Manager360 operators to use API v4 (#30598)
VladaZakharova Apr 15, 2023
959f0cf
Skip KubernetesPodOperator task when it returns a provided exit code …
hussein-awala Apr 15, 2023
b7ccadb
Upgrade Pip to 23.1 (#30663)
notatallshaw Apr 15, 2023
fad3809
Fix docs building for workday example. (#30664)
potiuk Apr 15, 2023
2d1d620
docker compose doc changes (#30662)
Bowrna Apr 15, 2023
4bb28d0
Add suspended providers to pytest collection test (#30668)
potiuk Apr 16, 2023
47f652b
Workaround type-incompatibility with new attrs in openlineage (#30674)
potiuk Apr 16, 2023
46edd16
Update the release note (#30680)
ephraimbuddy Apr 17, 2023
112a1c5
Correctly pass a type to attrs.has() (#30677)
uranusjr Apr 17, 2023
87a35cc
Merge WasbBlobAsyncSensor to WasbBlobSensor (#30488)
phanikumv Apr 17, 2023
0ac84c4
Updated app to support configuring the caching hash method for FIPS v…
vchiapaikeo Apr 17, 2023
283d136
Install twine with --force for package verification (#30683)
potiuk Apr 17, 2023
79f01c4
Fix docs: add an "apache" prefix to pip install (#30681)
burnash Apr 17, 2023
f0a83bf
Remove unittests.TestCase from tests/test_utils (#30685)
vincbeck Apr 17, 2023
65c9175
Introduce consistency of package sequence for "Other" test type (#30682)
potiuk Apr 17, 2023
adf5c40
Add missing version val to caching_hash_method config (#30688)
vchiapaikeo Apr 17, 2023
d714154
Upgrade to MyPy 1.2.0 (#30687)
potiuk Apr 17, 2023
a89e9f4
Parallelize Helm tests with multiple job runners (#30672)
potiuk Apr 17, 2023
5c111dd
Skip PythonVirtualenvOperator task when it returns a provided exit co…
hussein-awala Apr 17, 2023
822c0f2
[OTel Integration] Add tagging to existing stats (#30496)
ferruzzi Apr 18, 2023
bee6652
rename skip_exit_code to skip_on_exit_code and allow providing multip…
hussein-awala Apr 18, 2023
fe86e21
Fix d3 dependencies (#30702)
pierrejeambrun Apr 18, 2023
768bdda
Update system test example_emr to have logs (#30715)
vincbeck Apr 18, 2023
5f465d2
Fixed logging issue (#30703)
mrichman Apr 18, 2023
c07fbb9
Separate out and clarify policies for providers (#30657)
potiuk Apr 18, 2023
8642ec8
SqlToS3Operator - Add feature to partition SQL table (#30460)
utkarsharma2 Apr 18, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions chart/templates/dag-processor/dag-processor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,35 @@ spec:
{{- if .Values.dagProcessor.extraContainers }}
{{- toYaml .Values.dagProcessor.extraContainers | nindent 8 }}
{{- end }}
{{- if .Values.dagProcessor.logGroomerSidecar.enabled }}
- name: dag-processor-log-groomer
resources: {{- toYaml .Values.dagProcessor.logGroomerSidecar.resources | nindent 12 }}
image: {{ template "airflow_image" . }}
imagePullPolicy: {{ .Values.images.airflow.pullPolicy }}
{{- if .Values.dagProcessor.logGroomerSidecar.command }}
command: {{ tpl (toYaml .Values.dagProcessor.logGroomerSidecar.command) . | nindent 12 }}
{{- end }}
{{- if .Values.dagProcessor.logGroomerSidecar.args }}
args: {{- tpl (toYaml .Values.dagProcessor.logGroomerSidecar.args) . | nindent 12 }}
{{- end }}
{{- if .Values.dagProcessor.logGroomerSidecar.retentionDays }}
env:
- name: AIRFLOW__LOG_RETENTION_DAYS
value: "{{ .Values.dagProcessor.logGroomerSidecar.retentionDays }}"
{{- end }}
volumeMounts:
- name: logs
mountPath: {{ template "airflow_logs" . }}
{{- if .Values.volumeMounts }}
{{- toYaml .Values.volumeMounts | nindent 12 }}
{{- end }}
{{- if .Values.dagProcessor.extraVolumeMounts }}
{{- tpl (toYaml .Values.dagProcessor.extraVolumeMounts) . | nindent 12 }}
{{- end }}
{{- if or .Values.webserver.webserverConfig .Values.webserver.webserverConfigConfigMapName }}
{{- include "airflow_webserver_config_mount" . | nindent 12 }}
{{- end }}
{{- end }}
volumes:
- name: config
configMap:
Expand Down
4 changes: 4 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2697,6 +2697,10 @@
}
]
},
"logGroomerSidecar": {
"$ref": "#/definitions/logGroomerConfigType",
"description": "Configuration for log groomer sidecar"
},
"waitForMigrations": {
"description": "wait-for-airflow-migrations init container.",
"type": "object",
Expand Down
17 changes: 17 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1357,6 +1357,23 @@ dagProcessor:

podAnnotations: {}

logGroomerSidecar:
# Whether to deploy the Airflow dag processor log groomer sidecar.
enabled: true
# Command to use when running the Airflow dag processor log groomer sidecar (templated).
command: ~
# Args to use when running the Airflow dag processor log groomer sidecar (templated).
args: ["bash", "/clean-logs"]
# Number of days to retain logs
retentionDays: 15
resources: {}
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

waitForMigrations:
# Whether to create init container to wait for db migrations
enabled: true
Expand Down
6 changes: 6 additions & 0 deletions tests/charts/test_dag_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import pytest

from tests.charts.helm_template_generator import render_chart
from tests.charts.log_groomer import LogGroomerTestBase


class TestDagProcessor:
Expand Down Expand Up @@ -549,3 +550,8 @@ def test_should_add_component_specific_annotations(self):
)
assert "annotations" in jmespath.search("metadata", docs[0])
assert jmespath.search("metadata.annotations", docs[0])["test_annotation"] == "test_annotation_value"


class TestDagProcessorLogGroomer(LogGroomerTestBase):
obj_name = "dag-processor"
folder = "dag-processor"
wookiist marked this conversation as resolved.
Show resolved Hide resolved