Does time-triggered functions run when I am offline?

767 views
Skip to first unread message

Tuan Do

unread,
Apr 13, 2022, 9:36:21 PM4/13/22
to Google Apps Script Community
Hi all, 

Probably a silly question. If I create a time-trigger to run a function which updates my spreadsheet every hour, and then I close the spreadsheet and shut down my laptop (Basically go offline completely), will the time-triggered function still run and I would see my spreadsheet updated when I reopen my spreadsheet the next day?

Thanks in advance

Sharanya Braja Patnaik

unread,
Apr 13, 2022, 10:53:13 PM4/13/22
to Google Apps Script Community
Yes, it does. The code runs on the Google cloud servers remotely. It does not run on your laptop.

Laurie Nason

unread,
Apr 14, 2022, 1:47:25 AM4/14/22
to google-apps-sc...@googlegroups.com
Yes agree with Sharanya - and also - it runs as the person that you are logged in as and set up the trigger. If it's a mission critical trigger and needs to continue to run after you have left the company and your google account it closed, consider creating a google account that will not be removed to create it (and probably own the sheet too)

--
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/0de1df24-b8b1-4619-afb0-a74ff267ec02n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages