So I have a time-driven triggers created but every time I launch the Web App it creates another triggers. How to prevent it to always create triggers?
--
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/7a92a4d8-7da3-4bb2-bcce-d78b5daafec7o%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAN1QPJQopwa4Gan7_8ujWdt%2Bm4xR5u%3DUM_3nPoEJzMzx1ojQkQ%40mail.gmail.com.
e.g.App.prototype.isTriggerOn = //+
function ( functionName ) {
var result = false;
var self = this;
this.call( function () {
return ScriptApp.getProjectTriggers().some( function ( trigger ) {
if ( trigger.getHandlerFunction() == functionName ) {
result = true;
return true;
}
} );
} );
return result;
}call is exponential Backoff function
Am Di., 16. Juni 2020 um 12:51 Uhr schrieb Andrew Roberts <and...@roberts.net>:
You can check if the triggers already exist. Use the source function to identify the right one.
On Tue, 16 Jun 2020 at 11:08, K <hso.hum...@gmail.com> wrote:
So I have a time-driven triggers created but every time I launch the Web App it creates another triggers. How to prevent it to always create triggers?--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/7a92a4d8-7da3-4bb2-bcce-d78b5daafec7o%40googlegroups.com.
--
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-community+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CAN1QPJQopwa4Gan7_8ujWdt%2Bm4xR5u%3DUM_3nPoEJzMzx1ojQkQ%40mail.gmail.com.