You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ScaledJob with failing trigger(s) swallows the error (log level 1).
But the status reports that the ScaledJob is "defined correctly and is ready to scaling", while it is not.
status:
conditions:
- message: ScaledJob is defined correctly and is ready to scalingreason: ScaledJobReadystatus: "True"type: Ready
- message: Scaling is not performed because triggers are not activereason: ScalerNotActivestatus: "False"type: Active
Logically the Active condition is false - we failed to read the scaling metric, but there's no indication to the user about the failing trigger.
When a trigger for a ScaledJob fails, the error should not be suppressed, but should be propagated to the user in status and in operator log.
Actual Behavior
When a trigger for a ScaledJob fails, the status says that "ScaledJob is defined correctly and is ready to scaling".
If all triggers for the scaledjob are failing or more commonly this trigger is the only trigger, the scaledjob is never active as it can never read its scaling metric and says "Scaling is not performed because triggers are not active".
It doesn't say that it's not performing any scaling because of the trigger failure.
Report
ScaledJob with failing trigger(s) swallows the error (log level 1).
But the status reports that the ScaledJob is "defined correctly and is ready to scaling", while it is not.
Logically the
Active
condition is false - we failed to read the scaling metric, but there's no indication to the user about the failing trigger.At least an event is emitted:
Expected Behavior
When a trigger for a ScaledJob fails, the error should not be suppressed, but should be propagated to the user in status and in operator log.
Actual Behavior
When a trigger for a ScaledJob fails, the status says that "ScaledJob is defined correctly and is ready to scaling".
If all triggers for the scaledjob are failing or more commonly this trigger is the only trigger, the scaledjob is never active as it can never read its scaling metric and says "Scaling is not performed because triggers are not active".
It doesn't say that it's not performing any scaling because of the trigger failure.
Steps to Reproduce the Problem
kubectl get events
Logs from KEDA operator
No logs because the error is swallowed and printed only with elevated log level.
KEDA Version
2.14.0
Kubernetes Version
1.29
Platform
None
Scaler Details
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: