I am not sure what the upper limit for the lock service is. However, it is not a good practice in general to lock out for such a long duration. Locks should be used to protect multiple writes to critical data to avoid race conditions. Locking out for much longer than a few seconds is not recommended.
--
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/a12c938d-714c-4461-880c-d6d23b259909n%40googlegroups.com.
I believe there may be some misconceptions on what a lock does in Google AppsScript.
In most computer operating systems, a lock would prevent other instances from accessing that section of code as Alan mentioned.
However what would occur is the second instance is actually suspended until the first instance completes and releases the lock. So the second instance will still run but only after the first one completed. There will only ever be once instance in that section of code for the timeout you specify.
Hope that helps.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/5451d9ef-0148-455c-9ca1-439dd7d5d55dn%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/Nt0aLVN8FD8/unsubscribe.
To unsubscribe from this group and all its topics, 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/002b01d699e2%24fdffb2a0%24f9ff17e0%24%40gmail.com.