Skip to content

fix(k8s): set backoffLimit to 0 for analyzer/responder jobs#492

Open
Sonny00 wants to merge 1 commit into
TheHive-Project:masterfrom
Sonny00:fix/k8s-job-backofflimit-configurable
Open

fix(k8s): set backoffLimit to 0 for analyzer/responder jobs#492
Sonny00 wants to merge 1 commit into
TheHive-Project:masterfrom
Sonny00:fix/k8s-job-backofflimit-configurable

Conversation

@Sonny00

@Sonny00 Sonny00 commented Jul 16, 2026

Copy link
Copy Markdown

Description
Kubernetes Jobs were retried up to 6 times on failure because backoffLimit was not set, causing unnecessary retries and delayed failure reporting.

Fix
Added a configurable backoffLimit (default: 0) in K8sJobRunnerSrv.scala via:

job.kubernetes.backoffLimit = 0

Testing
Verified on a local kubeadm cluster:

Before: failed jobs retried 6 times.
After: failed jobs fail immediately with no retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant