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

Return empty dict if Pod JSON encoding fails #24478

Merged
merged 2 commits into from
Jun 15, 2022

Conversation

dstandish
Copy link
Contributor

When UI unpickles executor_configs with outdated k8s objects it can run into the same issue as the scheduler does (see #23727).

Our JSON encoder therefore needs to suppress encoding errors arising from pod serialization, and fallback to a default value.

When UI unpickles executor_configs with outdated k8s objects it can run into the same issue as the scheduler does (see apache#23727).

Our JSON encoder therefore needs to suppress encoding errors arising from pod serialization, and fallback to a default value.
@dstandish dstandish force-pushed the fix-webserver-crash-k8s-stale branch from 4cd1321 to b106bf7 Compare June 15, 2022 19:02
@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Jun 15, 2022
@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@dstandish dstandish merged commit fe5e689 into apache:main Jun 15, 2022
@dstandish dstandish deleted the fix-webserver-crash-k8s-stale branch June 15, 2022 19:47
@potiuk potiuk added this to the Airflow 2.3.3 milestone Jun 21, 2022
ephraimbuddy pushed a commit that referenced this pull request Jun 29, 2022
When UI unpickles executor_configs with outdated k8s objects it can run into the same issue as the scheduler does (see #23727).

Our JSON encoder therefore needs to suppress encoding errors arising from pod serialization, and fallback to a default value.
@ephraimbuddy ephraimbuddy added the type:bug-fix Changelog: Bug Fixes label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full tests needed We need to run full set of tests for this PR to merge type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants