feat: use plainRun.robotMetaId
This commit is contained in:
@@ -219,13 +219,17 @@ router.post('/runs/run/:id', requireSignIn, async (req, res) => {
|
|||||||
serializableOutput: interpretationInfo.serializableOutput,
|
serializableOutput: interpretationInfo.serializableOutput,
|
||||||
binaryOutput: uploadedBinaryOutput,
|
binaryOutput: uploadedBinaryOutput,
|
||||||
});
|
});
|
||||||
googleSheetUpdateTasks[req.params.id] = {
|
try {
|
||||||
name: plainRun.name,
|
googleSheetUpdateTasks[plainRun.runId] = {
|
||||||
runId: plainRun.runId,
|
robotId: plainRun.robotMetaId,
|
||||||
status: 'pending',
|
runId: plainRun.runId,
|
||||||
retries: 5,
|
status: 'pending',
|
||||||
};
|
retries: 5,
|
||||||
processGoogleSheetUpdates();
|
};
|
||||||
|
processGoogleSheetUpdates();
|
||||||
|
} catch (err: any) {
|
||||||
|
logger.log('error', `Failed to update Google Sheet for run: ${plainRun.runId}: ${err.message}`);
|
||||||
|
}
|
||||||
return res.send(true);
|
return res.send(true);
|
||||||
} else {
|
} else {
|
||||||
throw new Error('Could not destroy browser');
|
throw new Error('Could not destroy browser');
|
||||||
|
|||||||
Reference in New Issue
Block a user