0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/extensions/sync
Andreea Lupu 76277f5ebd
fix: remove inline GC and schedule a background task instead (#1610)
* fix: remove inline GC and set a default value of gc interval

- remove inline GC
- add a default value of GC interval
- run the GC periodically by default with the default value if no interval provided
- generate GC tasks with a random delay(0-30s) between
- add IsReady() method to scheduler.TaskGenerator interface

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>

* ci: add test for gc with short interval

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>

---------

Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
2023-08-07 12:55:19 -07:00
..
constants refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
httpclient refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
references feat(refator): refactoring repodb into meta (#1626) 2023-07-18 10:27:26 -07:00
content.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
content_internal_test.go chore: fix dependabot alerts (#1621) 2023-07-15 12:56:09 +03:00
local.go feat(refator): refactoring repodb into meta (#1626) 2023-07-18 10:27:26 -07:00
oci_layout.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
on_demand.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
on_demand_disabled.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
remote.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00
service.go feat(refator): refactoring repodb into meta (#1626) 2023-07-18 10:27:26 -07:00
sync.go fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
sync_disabled_test.go refactor(sync): use task scheduler (#1301) 2023-05-31 10:26:23 -07:00
sync_internal_test.go feat(refator): refactoring repodb into meta (#1626) 2023-07-18 10:27:26 -07:00
sync_test.go fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
utils.go fix(sync): fixed skipping docker images when they already synced (#1521) 2023-06-21 11:05:52 -07:00