-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Backup gets triggered when schedule unpaused #6517
Comments
@rnarenpujari After going through the codes, the schedule will trigger one backup after unpause. if the schedule is paused, the related CR will not be requeued, and the we will discuss whether it's by design or needs adjustment |
Per my understanding, this is working as designed, @rnarenpujari do you see any issue with this implementation? |
FWIW, I agree that the current behavior is counter intuitive. Backups should be triggered only on schedule and it seems that they are getting triggered as soon as one is unpaused (even if the current time is not as per schedule). |
I guess in the common case where you have a daily backup and pause it for a few days, the day you unpause you'd take 2 backups (one immediately and one at the scheduled time). It's kind of a nitpick - unless there's a use case for only wanting to take backups at a particular time. |
I would like to be assigned this issue! |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 14 days. If a Velero team member has requested log or more information, please provide the output of the shared commands. |
unstale |
What steps did you take and what happened:
If the cron expression would have fired while the schedule was paused, a backup is immediately triggered when you unpause it. For example if you create a schedule with cron "45 * * * *" and pause it at say the 43rd minute and then unpause it at say 50th minute, a backup gets triggered (I guess since
.Status.LastBackup
is nil or >60min ago).Wanted to confirm if this is expected behavior or not.
What did you expect to happen:
Schedule state to get reset when unpaused (i.e. a backup to get triggered when the cron fires next in the future).
The following information will help us better understand what's going on:
N/A
Anything else you would like to add:
N/A
Environment:
velero version
): 1.10.3velero client config get features
):kubectl version
): 1.25/etc/os-release
):Vote on this issue!
This is an invitation to the Velero community to vote on issues, you can see the project's top voted issues listed here.
Use the "reaction smiley face" up to the right of this comment to vote.
The text was updated successfully, but these errors were encountered: