potiuk commented on issue #30910: URL: https://github.com/apache/airflow/issues/30910#issuecomment-1531142790
Yes. The `--preload` flag has been added to optimize airlfow loading https://github.com/apache/airflow/pull/27297 and yes, it might break some workflows regarding the development of flask applications like you do. We are targetting airflow for production use and this is clearly a development feature, so we do not classify it as a bug. For now I recommend you to just comment this change out while you are developing the API. However i also encourage you (and anyone who my stumble upon this issue) to add a new feature where the `--preload` flag might be disabled for development case.. A good idea might be to not add the `--preload` flag when certain variable is set (we do not want to clutter airflow config with developer options) and add some documenttion in Plugin section of our docs about it. I'd encourage you also to submit a PR fixing that @Lorenzo-N if you feel like contributing back to airflow is a good idea - otherwise it will wait for someone who will pick it up (I marked it as "good first issue"). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
