I have the following code:
from datetime import datetime ,timedelta
import airflow.macros
args = {
'owner': 'Airflow',
'start_date': datetime(2018, 07, 01),
'retries': 3,
'retry_delay': timedelta(minutes=10)
}
This shows no errors:
All I do is change the month from 07
to 08
and this generates :
Sorry images are not shown directly.. I have insufficient credit for it so it's shown as link :(
Notice how the datetime
package becomes "unused"
The errors are:
Unresolved refrence datetime
statment expected , found PY:Colon
What is the problem?