mirror of
https://github.com/zoriya/Aeris.git
synced 2026-06-03 03:01:46 +00:00
feat: the worker inform of the error to the api
This commit is contained in:
@@ -49,7 +49,10 @@ export class Manager {
|
||||
|
||||
handlePipelineError(pipeline: Pipeline, error: Error): Observable<never> {
|
||||
console.error(`Unhandled exception while trying to listen for the pipeline ${pipeline.name} (type: ${pipeline.type.toString()}).`, error)
|
||||
fetch(`${process.env["API_URL"]}/error/${pipeline.id}?API_KEY=${process.env["API_KEY"]}`);
|
||||
fetch(`${process.env["API_URL"]}/error/${pipeline.id}?API_KEY=${process.env["API_KEY"]}`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({error}),
|
||||
});
|
||||
return NEVER;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user