Skip to content

Conversation

@hussein-awala
Copy link
Member

related: #33975


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues labels Aug 31, 2023
@hussein-awala hussein-awala requested a review from uranusjr August 31, 2023 22:21
last_resource_version: dict[str, str] = defaultdict(lambda: "0")
while True:
try:
with contextlib.suppress(Empty):
Copy link
Member

@Lee-W Lee-W Sep 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will it break when Empty is raised as it used to be or just suppress it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty should be raised by queue.get_nowait(), so previously this would be caught by the exception block to break the loop. Now Empty would be raised and break out of the loop, and then suppressed by this context manager. The end result should be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:cncf-kubernetes Kubernetes (k8s) provider related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants