I want to write a DAG that will hit a REST API every 15 seconds. But the cron provided in schedule_interval is of format (* * * * *) where minimum dimension can be given in minutes. Is there an alternate way to resolve this?
While writing DAG I am providing schedule_interval param which takes a cron expression as shown below :
dag = DAG('trigger_api', description='TriggerAPI 15 sec interval', schedule_interval='* * * * *', start_date=datetime(2020, 1, 1), catchup=False)
Above DAG will run every minute, but I want to schedule it every 15 seconds.