SD
Size: a a a
SD
В
try {
const tasks = await engineService.fetchAndLock(requestBody);
this.emit("poll:success", tasks);
tasks.forEach(executeTask);
} catch (e) {
this.emit("poll:error", e);
}
setTimeout(poll, interval);
В
fetchAndLock(requestBody) {
return this.post("/external-task/fetchAndLock", {
json: true,
body: { ...requestBody, workerId: this.workerId }
});
}
SD
В
В
В
R
В
R
В
SD
SD
В
В
R
R
R
В
SD