Schedule Question

I've tried searching the forum for "schedule".. but can't find my specific question. I want to schedule a job that executes only once every thirty minutes.

I first used something like:
schedule("* 0/30 * * * ? *", mySchedule)

I noticed in my log it was running every few hundred milliseconds for an entire minute. I am assuming this was because of the first asterisk. So I adjusted my code to the following:
schedule("1 0/30 * * * ? *", mySchedule)

This is better, as it now only executes every few hundred milliseconds for one second, instead of one minute. This gets me closer. But, it still is generating four or five calls to the function during that one second.

How do I get the schedule to only fire the function once?

1 Like

Nevermind. I'm an idiot. I forgot to account for my "for" loop. It's working perfectly after making the adjustment to the cron schedule.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.