Improve workflow retry

This commit is contained in:
Jan Oberhauser
2019-08-09 07:37:10 +02:00
parent d59a043e3f
commit 886100eeef
9 changed files with 38 additions and 25 deletions

View File

@@ -390,9 +390,9 @@ export default mixins(
this.isDataLoading = true;
try {
const data = await this.restApi().retryExecution(execution.id);
const retrySuccessful = await this.restApi().retryExecution(execution.id);
if (data.finished === true) {
if (retrySuccessful === true) {
this.$showMessage({
title: 'Retry successful',
message: 'The retry was successful!',
@@ -406,13 +406,11 @@ export default mixins(
});
}
this.refreshData();
this.isDataLoading = false;
} catch (error) {
this.$showError(error, 'Problem with retry', 'There was a problem with the retry:');
this.isDataLoading = false;
this.refreshData();
}
},
async refreshData () {