Nikage
Nikage

Reputation: 588

How to stop execution of Google Apps Script?

Can I use something like die() (in php) at my Apps Script application? I googled this question, the most acceptable solution is to throw new Error, but in this case I don't want to receive notification about script crash (as I not the only one who receives them).

I just want to terminate the script.

Upvotes: 16

Views: 56738

Answers (1)

Alan Wells
Alan Wells

Reputation: 31300

If you are in the code editor, and want to stop a script from running, you can click the "cancel" link in the toast display.

Or you can click "View" -> "Executions" from the code editor and then terminate the script.

You can also go directly to your executions at the link:

https://script.google.com/home/executions

Terminate Execution

Upvotes: 11

Related Questions