-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Scheduler dies if executor_config isnt passed a dict when using K8s executor #14182
Comments
Hi @fjmacagno so if I'm understanding the issue: rather than killing the entire scheduler when this happens, a better result would be for this to return a task failure with the error upon run? @kaxil @jhtimmins @ephraimbuddy this would be a good start k8sexecutor bug if you're interested. Glad to help you find the solution. |
Yeah, in general i want to avoid letting my users break airflow for everyone, and since this is a mis-configuration of a DAG I feel it should not load in the first place. Maybe Executors need a verifyExecutorConfig method? |
@fjmacagno that could work or at the minimum wrapping it in a try/catch block. This should be a very easy fix, so you or anyone mentioned should be able to take it on and I'd be glad to help/review (I'm trying to spread k8sexecutor knowledge so we can start answering these tickets more quickly) |
#14323 should fix it |
…che#14323) closes apache#14182 (cherry picked from commit e0ee91e) (cherry picked from commit 6dd7559)
Apache Airflow version: 2.0.1
Kubernetes version (if you are using kubernetes) (use
kubectl version
): 1.15Environment:
uname -a
):What happened:
Scheduler dies with
What you expected to happen:
DAG loading fails, producing an error for just that DAG, instead of crashing the scheduler.
How to reproduce it:
Create a task like
or
essentially anything where it expects a dict but gets something else, and run the scheduler using the kubernetes executor
The text was updated successfully, but these errors were encountered: