Skip to content

Instantly share code, notes, and snippets.

@debisic
debisic / cbl.js
Created December 11, 2022 17:32 — forked from patt0/cbl.js
ContinuousBatchLibrary is a Google Apps Script library that manages large batches and works around the 5 minute limitation of GAS execution. It does this by setting time based triggers in the future as well as memorising the last processed key in the batch in order to restart from the correct position. At the end of the batch a cleanup function …
/**
* --- Continous Execution Library ---
*
* Copyright (c) 2013 Patrick Martinent
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@debisic
debisic / Async.gs
Created December 1, 2022 01:07 — forked from sdesalas/Async.gs
Asynchronous execution for Google App Scripts (gas)
/*
* Async.gs
*
* Manages asyncronous execution via time-based triggers.
*
* Note that execution normally takes 30-60s due to scheduling of the trigger.
*
* @see https://developers.google.com/apps-script/reference/script/clock-trigger-builder.html
*/
### Keybase proof
I hereby claim:
* I am debisic on github.
* I am reggia90 (https://keybase.io/reggia90) on keybase.
* I have a public key ASBfr3SHfDHCvVM-aGbvRtFh_kQ89GdmrjWZByz_xltgwQo
To claim this, I am signing this object: