Skip to content

Commit

Permalink
Merge pull request #199 from biomage-ltd/handle-execution-does-not-exist
Browse files Browse the repository at this point in the history
Execution ARN does not exist in staging
  • Loading branch information
kafkasl authored Aug 10, 2021
2 parents 8bdb402 + 774bcac commit 64320e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/general-services/pipeline-status.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ const getPipelineStatus = async (experimentId, processName) => {
executionArn,
}).promise();
} catch (e) {
// state machines in staging are removed after some time, in this situation we return
// NOT_CREATED status so that the pipeline can be run again
if (config.clusterEnv === 'staging' && e.code === pipelineConstants.EXECUTION_DOES_NOT_EXIST) {
return {
[processName]: notCreatedStatus,
};
}

// if we get the execution does not exist it means we are using a pulled experiment so
// just return a mock sucess status
if (
Expand Down

0 comments on commit 64320e8

Please sign in to comment.