Repository navigation
Reduce SSL setup overhead in async Kubernetes triggers - #73399
Conversation
55a76bf to
e069fec
Compare
631c695 to
8de245a
Compare
Miretpl
left a comment
There was a problem hiding this comment.
I think that I approved this modification in the past, but after taking a bit more deeper look, I think that we have to do some modifications here to not make optimalization more important than operation stability.
8de245a to
71a1821
Compare
71a1821 to
d270ed2
Compare
f7dc5be to
8216cb6
Compare
8216cb6 to
668d256
Compare
7bc6da2 to
8c303c0
Compare
shahar1
left a comment
There was a problem hiding this comment.
The client caching itself looks right and the trigger cleanup paths are well covered; two questions on the per-call config reload and on documenting the new close() contract, plus two test nits.
Smaller observations
- See inline comments on
providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/hooks/kubernetes.py:925,providers/cncf/kubernetes/src/airflow/providers/cncf/kubernetes/hooks/kubernetes.py:1084,providers/cncf/kubernetes/tests/unit/cncf/kubernetes/triggers/test_pod.py:917,providers/cncf/kubernetes/tests/unit/cncf/kubernetes/triggers/test_pod.py:1122.
This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The findings
below are observations, not blockers; an Apache Airflow
maintainer — a real person — will take the next look at the
PR. If you think a finding is mis-applied, please reply on
the PR and a maintainer will weigh in.More on how Apache Airflow handles maintainer review:
Contributing guide.
@shahar1 I’ve addressed the minor comments and nits. Could we focus the next review on any remaining functional blockers? The original #71349 has been open since August, and I split this out as requested by @Miretpl The correctness feedback has been helpful, but I’d appreciate a maintainer’s view on what’s still needed to get this merged. |
8c303c0 to
f9843e9
Compare
update_params_for_auth is sync before kubernetes_asyncio 33, so await it only when it returns an awaitable.
0846009 to
5350bf8
Compare
|
Leaving for a couple of days in case @shahar1 would want to take a look one more time |
All good :) |
I extracted the cncf.kubernetes changes from #71349 so they can be reviewed and merged independently.
Direct hook users must call await hook.close() when finished. Cached TLS material is retained until the client is recreated.
Was generative AI tooling used to co-author this PR?