Here are the need to knows.
- I have an API I am pulling data from as regularly as possible because it changes constantly every day.
- I have to query at least a years worth of data as it is for holiday availability, and people book holidays even 2 years in advance.
- Some holiday products are way more active than others
So knowing the above facts, I will split up the timing results of how long the script takes per option.
Fetching a Full year of All vs Active Data
a. 7m 44s - 1 Year of All Data (188 Products)
b. 5m 39s - 1 Year of Active Data (50 Products)
Fetching 1 Month of All vs Active Data
c. 2m 24s - 1 Month of All Data (188 Products)
d. 1m 08s - 1 Month of Active Data (50 Products)
So my question is I would like to use a combination of schedules, every 5 minutes it runs ( c ), and every 4 hours it runs ( a )
My concern is overlap of times, I can not have script ( a ) and ( c ) running at the same time, so is there a way to only run a script if the other one has completed.
I hope this makes sense.
Community Page
Last updated:
Last updated: