-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScaledJob with Cron trigger does not scale down on completion #1893
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
I think that issue is interesting, i want to supply internal kubernetes cronjob systems with KEDA Cron to execute pods at cron schedule, for exemple, every 5 minuts. Is a possiblity to re-open this issue? |
We have a similar use case in which we aim to utilize KEDA's ScaledJob with the Cron scaler to trigger one-time jobs. We prefer using ScaledJob over Kubernetes CronJob because KEDA supports timezone settings. This feature allows us to easily set jobs to run at local times without the need to manually convert them from UTC. - type: cron
metadata:
timezone: America/New_York
start: 54 13 * * *
end: 55 13 * * *
desiredReplicas: "1" Now we use below as a workaround
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed due to inactivity. |
I'm interested in this. Maybe someone could reopen it? |
Report
ScaledJob with cron trigger does not limit itself to a single, successful job execution.
I think the completions in steps to reproduce should limit this to a single job execution.
Expected Behavior
The scaledJob executes on a cron trigger. After the triggered job completes n times, where n is
completions: n
, the job should no longer be triggered.Actual Behavior
The scaledJob executes on a cron trigger. Jobs are triggered every 30 seconds until the scaledJob ends.
spec.triggers[0].metadata.end
In this case, the job has successfully completed.
completions: 1
is exceeded.Steps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.2.0
Kubernetes Version
1.18
Platform
Amazon Web Services
Scaler Details
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: