Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear all,
Is there a way to stop a reload task for a certain time of the day?
I have a published app that reloads every 30 minutes every day, and I would like it to stop reloading between 5am and 8am.
Is there a way to do this?
Assuming you are not using publisher?
If so then just add a cheeky little line in the top of your code which says something like (sorry if the syntax is slightly out)
if hour(now()) >5 and hour(now()) <8 then
exit script
end if
Hi Adam,
We have Publisher. Would that make it easier?
haha I think so yes, but I haven't used publisher myself but this thread should help
How can I do that using the Publisher? Is there an example?
Sorry I thought that link had an example but it doesn't appear to have.
I'm afraid I will have to defer to someone else as I don't have experience in this area, hence why I use the above code, stalwar1 have you got publisher experience?
I would say create two tasks
1) Run only between 12:00 AM and 5 AM
2) Run only between 8:00 AM and 11:59 pm