Dipayan; This looks like a good use of a timetable if you use Airflow 2.2 or above: https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/timetable.html
If using an earlier version, you might schedule for every Friday and check to see if it is the last Friday in a ShortCircuitOperator and discontinue the pipeline: https://registry.astronomer.io/providers/apache-airflow/versions/latest/modules/shortcircuitoperator Regards, Leonard Leonard Walstad Principal Architect / Customer Success Astronomer.io <https://astronomer.io/> [email protected] 617.320.4854 On Mon, Apr 10, 2023 at 11:09 AM Dipayan Dev <[email protected]> wrote: > Hi Team, > > I have a requirement to schedule the Airflow DAG on the last Friday of > every month. > > I was using this cron expression which works on Linux : 0 00 16 ? * 6L. > But it throws a DAG import error: > *Invalid timetable expression: [0 00 16 ? * 6l] is not acceptable.* > > > Can anyone please help on how to set the scheduler? > > > > With Best Regards, > > Dipayan Dev > >
