Skip to content

Commit 892d77a

Browse files
author
Vugar Yagubov
committed
Add retryDelay support
1 parent d86f37f commit 892d77a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/FlowRunDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
<template v-if="flowRun.empiricalPolicy">
4949
<p-key-value label="Retries" :value="flowRun.empiricalPolicy.retries" :alternate="alternate" />
50-
<p-key-value label="Retry Delay" :value="`${flowRun.empiricalPolicy.retryDelaySeconds}s`" :alternate="alternate" />
50+
<p-key-value label="Retry Delay" :value="`${flowRun.empiricalPolicy.retryDelay}s`" :alternate="alternate" />
5151
</template>
5252
</template>
5353
</div>

src/maps/empiricalPolicy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { MapFunction } from '@/services/Mapper'
66
export const mapEmpiricalPolicyResponseToEmpiricalPolicy: MapFunction<EmpiricalPolicyResponse, EmpiricalPolicy> = function(source) {
77
return new EmpiricalPolicy({
88
retries: source.retries,
9-
retryDelay: source.retry_delay,
9+
retryDelay: source.retry_delay ?? source.retry_delay_seconds,
1010
maxRetries: source.max_retries,
1111
retryJitterFactor: source.retry_jitter_factor,
1212
retryDelaySeconds: source.retry_delay_seconds,

0 commit comments

Comments
 (0)