Skip to content
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

controller: improve error for missed start times in cronjob #374

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

Rakshith-R
Copy link
Member

The reclaimspacecronjob may miss too many runs due to the following reasons:

  • low startingDeadlineSeconds
  • clock skew
  • (added now) when user has reduced schedule which in turn leads to the new interval being < 100 times of old interval, aka >100 missed runs.

This issue only occurs when user changes schedule which drastically reduces interval by more than 100 times. Error message is improved to ask user to delete and recreate cronjob to overcome this issue.

@mergify mergify bot requested review from nixpanic and yati1998 June 21, 2023 06:14
@Rakshith-R Rakshith-R requested a review from Madhu-1 June 21, 2023 06:16
The reclaimspacecronjob may miss too many runs due to the
following reasons:
- low startingDeadlineSeconds
- clock skew
- (added now) when user has reduced schedule which in turn
  leads to the new interval being < 100 times of old interval,
  aka >100 missed runs.

This issue only occurs when user changes schedule which
drastically reduces interval by more than 100 times.
Error message is improved to ask user to delete and
recreate cronjob to overcome this issue.

Signed-off-by: Rakshith R <[email protected]>
@mergify mergify bot merged commit 91d1cac into csi-addons:main Jun 21, 2023
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.

3 participants