You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Script detectors for monitored scripts are run for each target every 30 mins. Right now, they run synchronously. In pseudocode:
for monitoredScript in monitoredScripts:
let computedTargets = monitoredScript.computeTargets();
for target in computedTargets:
await runDetectorWIthTarget(monitoredScript.detector, target) // this is blocking
Even with just 4 scripts in DTR, this is already pretty slow to evaluate since detectors need to fetch data from the studio api for each of the orchestration script functions they have in the detector function. One quick way to speed things up would be to generate a list of Promises for all the runDetectorWithTarget(...)'s that would be run and executing them asynchronously using Promise.all
The text was updated successfully, but these errors were encountered:
Script detectors for monitored scripts are run for each target every 30 mins. Right now, they run synchronously. In pseudocode:
Even with just 4 scripts in DTR, this is already pretty slow to evaluate since detectors need to fetch data from the studio api for each of the orchestration script functions they have in the detector function. One quick way to speed things up would be to generate a list of Promises for all the
runDetectorWithTarget(...)
's that would be run and executing them asynchronously usingPromise.all
The text was updated successfully, but these errors were encountered: