Skip to content

Commit

Permalink
Save stdout when exiting pipeline due to error. Fixes #1973 (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
brollb committed Nov 10, 2020
1 parent e12f494 commit 974e833
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/ExecuteJob/ExecuteJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ define([
await this.onUpdate(jobId, status);
} catch (err) {
this.logger.error(`Error when processing operation update: ${err}`);
await this.save('Saving remaining edits before pipeline exits w/ error.');
throw err;
}
});
Expand All @@ -202,6 +203,7 @@ define([
await this.onOperationEnd(null, job);
} catch (err) {
this.logger.error(`Error when processing operation end: ${err}`);
await this.save('Saving remaining edits before pipeline exits w/ error.');
throw err;
}
}
Expand Down

0 comments on commit 974e833

Please sign in to comment.