Reputation: 1
Google app script gives you the possibility to easily trigger the script even every minute. However, I would like to trigger an event every 15 seconds ? can I do it easily ?
Or maybe other companies offer similar tools which are easy to configure?
Upvotes: 0
Views: 1795
Reputation: 1459
This is not currently possible. However, you can have a parent function run a child function 4 times with a 15 second delay, for example:
// This is the function that gets triggered by your trigger every minute
function parentFunction() {
for(let i = 0; i < 4; i++) {
childFunction();
Utilities.sleep(15000); // sleep for 15 seconds
}
}
function childFunction() {
// this function does whatever you need
// 4 times per every trigger execution
// which is 4 times per minutes or every 15 seconds
}
Upvotes: 1