BigQuery insert from sGTM is timing out. How to retry?

Hi all -

Data is being sent to BigQuery from sGTM via the BigQuery.insert() call. Sometimes it fails with the message: {“reason”:“promise_timed_out”}.

It would be useful to wait x ms and then retry.

Does Stape (or someone here) knows how to create a timer in sGTM? setTimeout() and wait() are not supported in sGTM javascript.

Or is there another strategy that can be used?

Thanks so much,