Skip to content

Commit ac2fb6c

Browse files
committed
fix: #1182
1 parent 40bbc28 commit ac2fb6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/workflow/engine/executor_bizapply.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@ func (ne *bizApplyNodeExecutor) checkCanSkip(execCtx *NodeExecutionContext, last
211211
}
212212

213213
if lastCertificate != nil {
214+
if lastCertificate.IsRevoked {
215+
return false, "the last requested certificate has been revoked"
216+
}
217+
214218
renewalInterval := time.Duration(thisNodeCfg.SkipBeforeExpiryDays) * time.Hour * 24
215219
expirationTime := time.Until(lastCertificate.ValidityNotAfter)
216220
daysLeft := int(math.Floor(expirationTime.Hours() / 24))

0 commit comments

Comments
 (0)