0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-03-11 02:17:43 -05:00
zot/pkg/api/config
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
..
config.go fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
config_elevated_test.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
config_test.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00