[
https://issues.apache.org/jira/browse/AIRFLOW-6622?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Maxence Cramet updated AIRFLOW-6622:
------------------------------------
Description:
I have two python files:
dag.py:
{code:java}
from utils import my_function# use my function in some way
...{code}
utils.py:
{code:java}
def my_function(arg1): # doing something ...
{code}
It's working properly but if I change the code in my_function it's not updated
in the DAG the old code is still used.
The only work around I've found is to rename utils to utils_v2 to force the
update, but it's not ideal...
was:
I have two python files:
dag.py:
from utils import my_function
# use my function in some way
...
{{}}
utils.py:
def my_function(arg1):
# doing something
...
{{}}
It's working properly but if I change the code in my_function it's not updated
in the DAG the old code is still used.
The only work around I've found is to rename utils to utils_v2 to force the
update, but it's not ideal...
> Airflow not updating functions/classes imported
> -----------------------------------------------
>
> Key: AIRFLOW-6622
> URL: https://issues.apache.org/jira/browse/AIRFLOW-6622
> Project: Apache Airflow
> Issue Type: Bug
> Components: DAG
> Affects Versions: 1.10.6
> Reporter: Maxence Cramet
> Priority: Major
>
> I have two python files:
> dag.py:
> {code:java}
> from utils import my_function# use my function in some way
> ...{code}
> utils.py:
> {code:java}
> def my_function(arg1): # doing something ...
> {code}
> It's working properly but if I change the code in my_function it's not
> updated in the DAG the old code is still used.
> The only work around I've found is to rename utils to utils_v2 to force the
> update, but it's not ideal...
--
This message was sent by Atlassian Jira
(v8.3.4#803005)