Skip to content

Commit

Permalink
Ensure airflow.macros is being loaded properly in subprocesses
Browse files Browse the repository at this point in the history
  • Loading branch information
Rik Heijdens committed Dec 4, 2020
1 parent b2258a4 commit b2c035c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions airflow/utils/python_virtualenv_script.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
import {{ pickling_library }}
import sys

# Ensure airflow.macros has been loaded properly.
import airflow.plugins_manager
airflow.plugins_manager.integrate_macros_plugins()

# Read args
{% if op_args or op_kwargs %}
with open(sys.argv[1], "rb") as file:
Expand Down

0 comments on commit b2c035c

Please sign in to comment.