0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-03-11 02:17:43 -05:00
zot/pkg/api
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 fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
constants refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
errors refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
authn.go refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
authn_test.go refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
authz.go fix(authn): fix several issues with authn, closes #1632 (#1633) 2023-07-19 09:27:04 -07:00
controller.go fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
controller_test.go fix: remove inline GC and schedule a background task instead (#1610) 2023-08-07 12:55:19 -07:00
ldap.go feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00
routes.go refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
routes_test.go refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
session.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00