Code: Select all
@task.external_python(
python=v_python_path,
retries=3,
)
def init_env():
### this part have to be added for every task
import sys
sys.path.append("/opt/airflow/dags")
####
from my_module import my_function
Code: Select all
@task.external_python(
python=v_python_path,
retries=3,
)
def init_env():
### this part have to be added for every task
import sys
sys.path.append("/opt/airflow/dags")
####
from my_module import my_function