Hello,
I am trying to debug why a certain script I wrote for automations failed because it takes more than the allowed 30 seconds. It seems that Airtable JavaScript environment doesn't support parallel execution of asynchronous tasks. Is that correct ? What can I don if I want to perform this kind of code: await Promise.all([ updateRemoteDB(), updateRemoteDB() ])
Thanks,
Yaniv
Solved
Scripting
Best answer by Alexey_Gusev
In the question I removed un necessary data,
UpdateRemoteDB is called with different parameters for different remote DB's
So just update each remote DB in it's own script step.
when I wrote about 'output.set', I supposed you are querying some data from Airtable in the script, like
let query=await selectRecordAsync...
since script variables (like 'query') will be inavailable in other steps, to avoid querying many times, you can pass your data as output variable
Login to the community
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
