Commit 17037e6
Lazy import PodGenerator for deserialization (#56733)
The #56692 introduced optimization for PodGenerator imports - but there
was a problem that when deserializing Pod it failed when no k8s classes
were loaded - but it really is not optimisation but failure - nothing
actually prevents us from importing the k8s classes and we actually have
to do it in case we want to deserialize serialized Pod. # Please enter
the commit message for your changes. Lines starting
* fixup! Skip PodGenerator import for deserialization when no k8s installed
* fixup! fixup! Skip PodGenerator import for deserialization when no k8s installed
---------
Co-authored-by: Kaxil Naik <[email protected]>1 parent 98eb4fb commit 17037e6
File tree
2 files changed
+19
-6
lines changed- airflow-core
- src/airflow/serialization
- tests/unit/serialization
2 files changed
+19
-6
lines changedLines changed: 16 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
925 | 925 | | |
926 | 926 | | |
927 | 927 | | |
928 | | - | |
929 | | - | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
930 | 935 | | |
931 | 936 | | |
932 | 937 | | |
| |||
3799 | 3804 | | |
3800 | 3805 | | |
3801 | 3806 | | |
3802 | | - | |
| 3807 | + | |
| 3808 | + | |
| 3809 | + | |
| 3810 | + | |
| 3811 | + | |
| 3812 | + | |
| 3813 | + | |
| 3814 | + | |
3803 | 3815 | | |
3804 | 3816 | | |
3805 | 3817 | | |
3806 | 3818 | | |
3807 | 3819 | | |
3808 | | - | |
| 3820 | + | |
3809 | 3821 | | |
3810 | 3822 | | |
3811 | 3823 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2531 | 2531 | | |
2532 | 2532 | | |
2533 | 2533 | | |
2534 | | - | |
| 2534 | + | |
2535 | 2535 | | |
2536 | 2536 | | |
2537 | 2537 | | |
| |||
2558 | 2558 | | |
2559 | 2559 | | |
2560 | 2560 | | |
2561 | | - | |
| 2561 | + | |
| 2562 | + | |
2562 | 2563 | | |
2563 | 2564 | | |
2564 | 2565 | | |
| |||
0 commit comments