The process is executed more than once with a time-driven trigger.

632 views
Skip to first unread message

本望弘久

unread,
Jun 10, 2022, 11:14:29 PM6/10/22
to Google Apps Script Community
Hello,

I have one trigger set to start between 8:00 and 9:00.
For some reason, the event was executed three times at the same time.
How can this be prevented?
I know that the exclusion control will not solve the problem, but do you have any ideas?
Thank you.Untitled.pngUntitled1.png

Tanaike

unread,
Jun 12, 2022, 7:57:06 PM6/12/22
to Google Apps Script Community
In order to test your situation, can you provide detailed methods for correctly replicating your current issue?

CBMServices Web

unread,
Jun 12, 2022, 8:17:33 PM6/12/22
to google-apps-sc...@googlegroups.com
I also had the same thing happen to one of my triggers last night. 

I did not have any protection to check and ensure it is not being run again and again on same day. But this would be a small quick addition to the function to ensure it does not get executed multiple times on the same day.

Not sure if your situation is the same, but I will just need to record the date of when was function last run and if it is being called again before 24 hours have passed, then just return and not execute anything. 

On Sun., Jun. 12, 2022, 4:57 p.m. Tanaike, <kanshi...@gmail.com> wrote:
In order to test your situation, can you provide detailed methods for correctly replicating your current issue?

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/011319a3-b744-4829-9d81-df6179835503n%40googlegroups.com.

本望弘久

unread,
Jun 14, 2022, 7:06:31 PM6/14/22
to Google Apps Script Community
hi, Tanaike

Thank you for your reply.
I'm sorry I couldn't give you useful information after you responded to me.
I don't know how to reproduce the problem.
I just set the time activation trigger and just wait.
I only set one trigger to start between 8am and 9am, but suddenly it runs three times and I have no idea why.

Hirohisa

本望弘久

unread,
Jun 14, 2022, 7:07:08 PM6/14/22
to Google Apps Script Community
hi, George


Thank you for your reply.
I'll try to implement it as advised!
I have a feeling your suggestion will solve the problem!

Hirohisa
Reply all
Reply to author
Forward
0 new messages