'Is there a way to test and debug DAGs from a local device to Composer Cloud?

I want to deploy and edit Airflow DAGs from local and find errors without going to upload DAGs.



Solution 1:[1]

You are able to test a single instance in a local environment and see the log output; viewing the output enables you to check for syntax errors and task errors that might occur, but note that testing in a local environment does not check dependencies or communication status to the database.

I would recommend you to put the DAGs in a data/test folder in your test environment and follow this guide that Google provides.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Eduardo Ortiz