Skip to content

The scheduled task of Tag Retention does not work after the upgrade #21889

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

Open
OnePiece2025 opened this issue Apr 16, 2025 · 2 comments
Open

Comments

@OnePiece2025
Copy link

Hi teams,
I upgraded Habor continuously from v2.8 to v2.10 and v2.12 on February 7th. I accidentally discovered that the scheduled task of Tag Retention are no longer working.
The scheduling mode of the task was set to hours, I adjusted it to Custom cron mode and the scheduled tasks started working.
I have checked the pod logs about harbor-jobservice and there are no error messages about retention.
I want to know what caused this issue.

Thank you in advance!

Image Image

harbor-jobservice.log

@stonezdj
Copy link
Contributor

stonezdj commented Apr 21, 2025

Can you please describe the issue in detail? Can you please try the Hourly Scheduler instead of the customer cron string?

@OnePiece2025
Copy link
Author

OnePiece2025 commented Apr 22, 2025

Hello Daojun,
Before the upgrade, we configured Tag Retention in the gpm project, which has an hourly scheduling policy and is working properly.
On February 7th, I upgraded habor from version 2.8.2 to version 2.12.0, with the intermediate version being 2.10.0. I found that this scheduling strategy is not being executed. I tried to manually execute it, but I couldn't find the reason why it's not being executed automatically.
I adjusted the scheduling strategy from hourly to cron mode on April 16th, and then scheduled tasks began to be scheduled!
Now I have adjusted it to hourly, and it can still be scheduled normally.
Image
I further checked the policy of other projects and found that they were either scheduled or not. The unscheduled ones actually started after an earlier upgrade.
I want to know why these scheduling tasks have not been executed and how they can be reactivated?
The unscheduled ones:
Image
Image

Thank you very much in advance.
Best regards

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

No branches or pull requests

4 participants