I try to run a dynamic schedule_interval in Airflow like below. But it works only when I run the dag manually. Could you please help me say, if the dynamic schedule_interval could be a reason, why the dag does not run automatically or is there any other reasons for that?
if datetime.today().day == 1:
schedule_interval = '00 07 * * *'
else:
schedule_interval = '00 07 * * 1'
Thank you!
interval_schedulesee here astronomer.io/guides/dynamically-generating-dags - andilabs