Skip to content

Commit

Permalink
fix(web): remove digest check and add failed state (#7605)
Browse files Browse the repository at this point in the history
  • Loading branch information
djabarovgeorge authored Jan 29, 2025
1 parent 9ce9a68 commit 516e643
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ const generateDetailByStepAndStatus = (status, job) => {
return `Success! ${job.executionDetails?.at(-1)?.detail}`;
}

if (status === JobStatusEnum.FAILED) {
return `Failed! ${job.executionDetails?.at(-1)?.detail}`;
}

if (job.type === StepTypeEnum.DIGEST) {
if (status === JobStatusEnum.SKIPPED) {
return job.executionDetails?.at(-1)?.detail;
Expand All @@ -99,7 +103,6 @@ const generateDetailByStepAndStatus = (status, job) => {
if (job.type === StepTypeEnum.DELAY) {
const { digest, step: stepMetadata, payload } = job;

if (!digest.amount && !digest.unit) return `Waiting to receive execution delay from bridge endpoint`;
if (stepMetadata?.metadata?.type === DelayTypeEnum.SCHEDULED) {
return `Delaying execution until ${payload[stepMetadata.metadata.delayPath]}`;
}
Expand Down

0 comments on commit 516e643

Please sign in to comment.