Skip to content

Commit

Permalink
Fix crash due to malformed jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 7, 2024
1 parent ae32e0a commit f902a25
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/runtime/JobManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ export default class JobManager {
reason: e.toString(),
});
});
}).catch((e) => {
console.error("Error initializing job", e);
this.conn.cancelJob({
jobId: job.id,
reason: e.toString(),
});
});
}catch(e){
console.error("Error starting job",job.id,e);
Expand Down

0 comments on commit f902a25

Please sign in to comment.