elyra-ai / elyra

Elyra extends JupyterLab with an AI centric approach.
https://elyra.readthedocs.io/en/stable/
Apache License 2.0
1.86k stars 344 forks source link

Generic components on Airflow fail if the notebook's kernel name is not found #3134

Closed kevin-bates closed 1 year ago

kevin-bates commented 1 year ago

While troubleshooting #3131 it was learned that Airflow and Kubeflow use separate bootstrappers and the Airflow bootstrapper does not contain the find_best_kernel() functionality that is present in the Kubeflow bootstrapper. As a result, notebooks that reference a kernel name that is not present in the runtime image will fail since there are no means in place to fall back to another kernel.

The logic (referenced above) needs to be copied from kfp/bootstrapper.py to airflow/bootstrapper.py.