use custom harbor gc schedule

This commit is contained in:
170-carry 2026-04-29 16:42:59 +08:00
parent d4a11b67b3
commit 78d27a45b3

View File

@ -295,7 +295,7 @@ else:
print(f"updated retention_id={retention_id}") print(f"updated retention_id={retention_id}")
gc_payload = { gc_payload = {
"schedule": {"type": "Schedule", "cron": gc_cron}, "schedule": {"type": "Custom", "cron": gc_cron},
"parameters": {}, "parameters": {},
} }
status, current_gc, _ = request("GET", "/system/gc/schedule") status, current_gc, _ = request("GET", "/system/gc/schedule")