I have to write a snowflake task to run everyday at every 2 minutes from 5:00 EST to 5:00 PM EST. The code I wrote is not working, the task didnt stop running even after 5:00 PM:
CREATE OR REPLACE TASK tsk_master
WAREHOUSE = XS_WH
SCHEDULE = 'USING CRON * 5-17 * * * America/New_York'
TIMESTAMP_INPUT_FORMAT = 'YYYY-MM-DD HH24'
COMMENT = 'Master task job to trigger all other tasks'
AS call pntinsight_lnd.SP_ACCT_DIM_1();
Please suggest what did I do wrong, how to stop it from running after 5 PM, and how can i set it to run every 2 minutes?