- Newest
- Most votes
- Most comments
It appears your DAG isn't running on schedule despite working correctly when triggered manually. This issue could be related to a few common scheduler problems in Amazon MWAA.
First, the warning logs you're seeing indicate that the scheduler is not recognizing your AAA_script.py as a valid DAG file. This is likely because this file contains your helper functions (A and B) but not the actual DAG definition. The DAG definition appears to be in a different file that imports these functions.
There are several potential causes for your scheduler issue:
-
Scheduler health issues: The scheduler might not be running properly. If the scheduler doesn't send a heartbeat within the scheduler_health_check_threshold (default 30 seconds), it's considered unhealthy and won't schedule new tasks.
-
Networking issues: Check that your VPC security group allows inbound access to port 5432, which is needed to connect to the Amazon Aurora PostgreSQL metadata database for your environment.
-
Dependency installation failures: Ensure that all required Python modules are correctly installed and compatible.
-
Overloaded scheduler: If your scheduler CPU and memory utilization is too high (above 90%), it might not function properly.
-
Start date configuration: Your DAG has a start_date set to June 9, 2025, which is in the future. With catchup=False, the scheduler won't run this DAG until that date is reached. You might want to set the start_date to a date in the past.
To troubleshoot:
- Check CloudWatch Logs for scheduler issues
- Verify your VPC security group settings
- Consider modifying the start_date to be in the past
- Ensure your DAG file structure is correct and that the scheduler can properly parse your DAG
Since the DAG runs correctly when triggered manually, the issue is most likely with how the scheduler is interacting with your DAG rather than with the DAG's logic itself.
Sources
Resolve common scheduler issues in Amazon MWAA | AWS re:Post
Troubleshooting: DAGs, Operators, Connections, and other issues in Apache Airflow v2 - Amazon Managed Workflows for Apache Airflow
Troubleshooting: DAGs, Operators, Connections, and other issues in Apache Airflow v1 - Amazon Managed Workflows for Apache Airflow
Relevant content
- asked 4 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago

AI says: "Your DAG has a start_date set to June 9, 2025, which is in the future. " Today is July 9, 2025. So, it's not in the future. It was a month ago...