diff --git a/api/src/api/v2.js b/api/src/api/v2.js index e95382a..ac1269e 100644 --- a/api/src/api/v2.js +++ b/api/src/api/v2.js @@ -264,7 +264,11 @@ router.post('/execute', async (req, res) => { await job.prime(); - const result = await job.execute(); + let result = await job.execute(); + // Backward compatibility when the run stage is not started + if (result.run === undefined) { + result.run = result.compile; + } await job.cleanup();