Hello @pmgriffin,
Yes since you uploaded the file there should be at least import errors in the upper left corner of airflow. However could you check that you’ve uploaded to the correct location to see the DAG, you might used: aws s3 sync src s3://de-c2w4lab1-<ACCOUNT_ID>-us-east-1-mwaa-dags
instead of: aws s3 sync src s3://de-c2w4lab1-<ACCOUNT_ID>-us-east-1-mwaa-dags/dags
Yes i believe i have uploaded to the correct bucket. And this is the bucket Airflow was previously reading from to find originaly parsing errors in my script.
Hi Paul,
There are instructions to restart airflow and use the solution file to re-sync the bucket file to the correct one. Just make sure the file will find changes and get an output from the aws s3 sync src s3://de-c2w4lab1-<ACCOUNT_ID>-us-east-1-mwaa-dags/dags command. I could try to reproduce the issue. Hope it helps
thanks for taking the time again. I had already actually tried those steps, you’ll see in my initial post i had but deleted all S3 contents and sync’d up the solution script. I also restarted AirFlow but no luck.
The 2 hour time limit has no expired (so annoying) and i’ll need to restart the lab. Hopefully new resources my fix this issue as it seems i’m doing everything correctly based on the instructions and your responses.
Sure @pmgriffin take your time, well I just see the DAG on my airflow just fine. Keep the tips and the solution file and if you need to restart airflow use bash ./scripts/restart_airflow.sh in the beginning. Thank you
I need some support as I am not able to follow {{ dag_name }} instructions. How to replace the {{ dag_name }} is something which is really killing me off. No clues whatsoever.
In part 5.1 of the exercise you create the file template.py. As the name suggests you are supposed to create three different files with three different names with the help of this file.
This is done in part 5.1.2 with Jinja template. If you search the file (control+f) for model_trip_duration_easy_destiny you will find three occurrences. You need to replace them with {{ dag_name }}
The first one is a function and could be flagged as a syntax error, this is normal. The last two at the bottom of the file should keep their syntax (one start with dag_ and the second is a function()).
Same process goes with part 5.1.3 {{ vendor_name }} (four occurrences)
Hope its helpful