NeroCube / bookmark

Place some learning resources
0 stars 0 forks source link

Airflow schedule a task to run on the Monday before the 15th of the month #314

Open NeroCube opened 3 years ago

NeroCube commented 3 years ago

Example

from croniter import croniter 
from datetime import datetime 
cron = croniter("30 7 * * 1#2") 
for i in range(10):
    print(cron.get_next(datetime))

Reference

https://stackoverflow.com/questions/52203452/airflow-schedule-a-task-to-run-on-the-monday-before-the-15th-of-the-month/52320828