You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/28 06:28:03 UTC

[GitHub] [airflow] yuqian90 commented on issue #13827: ExternalTaskMarker with user_defined_macros do not work in Airflow 2.0 or with store_serialized_dags = True in Airflow 1.10.*

yuqian90 commented on issue #13827:
URL: https://github.com/apache/airflow/issues/13827#issuecomment-768830986


   Note that for any operator, if it uses macros in `user_defined_macros` in jinja template fileds and the user clicks on "Rendered Template" on the airflow page, they get an error message saying "Webserver does not have access to User-defined Macros or Filters". This is how the error is handled on the webserver for "Rendered Template". This is the exact same problem as the one reported in this issue. Both are because airflow Webserver do not have reference to the `user_defined_macros` of the DAG. If we have plans for making "Rendered Template" work for `user_defined_macros`, the same solution can probably be applied to this `ExternalTaskMarker` issue reported here.
   
   Or if there's no plan to solve the "Rendered Template" issue, maybe I can put up a PR to handle the `ExternalTaskMarker` error in the same fashion (i.e. catch exception and flash an error message on the website when it happens).
   
   @kaxil what do you think?


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org