Fix/workflow retry (#11999)

This commit is contained in:
zxhlyh
2024-12-23 15:55:50 +08:00
committed by GitHub
parent e068bbec73
commit ef95b1268e
5 changed files with 130 additions and 29 deletions

View File

@@ -31,7 +31,7 @@ const RetryOnNode = ({
}, [data._runningStatus, showSelectedBorder])
const showDefault = !isRunning && !isSuccessful && !isException && !isFailed
if (!retry_config)
if (!retry_config?.retry_enabled)
return null
return (
@@ -74,7 +74,7 @@ const RetryOnNode = ({
}
</div>
{
!showDefault && (
!showDefault && !!data._retryIndex && (
<div>
{data._retryIndex}/{data.retry_config?.max_retries}
</div>