Skip to content

fix: Fixed cache entries never being cleaned#629

Open
DrRebus wants to merge 1 commit into
ovh:masterfrom
DrRebus:rtordjma/fix-cache-cleanup
Open

fix: Fixed cache entries never being cleaned#629
DrRebus wants to merge 1 commit into
ovh:masterfrom
DrRebus:rtordjma/fix-cache-cleanup

Conversation

@DrRebus
Copy link
Copy Markdown
Contributor

@DrRebus DrRebus commented Apr 28, 2026

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix

  • What is the current behavior? (You can also link to an open issue here)
    In the the new cache plugins, expired entries are supposed to be cleaned at startup, but the initializer plugin is ran before the DB is set up, meaning that the plugin can't perform the cleanup and fails silently.

  • What is the new behavior (if this is a feature change)?
    The cleaning of expired entries is moved to a new collector running every 24h and at startup, once the database is properly initialized.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    No breaking change.

  • Other information:
    Link to the guilty code: https://github.com/ovh/utask/blob/master/pkg/plugins/builtin/cache/init.go#L26

@DrRebus DrRebus force-pushed the rtordjma/fix-cache-cleanup branch 2 times, most recently from cef80e2 to 5caa03b Compare April 28, 2026 15:33
Signed-off-by: Ruben Tordjman <144785435+DrRebus@users.noreply.github.com>
@DrRebus DrRebus force-pushed the rtordjma/fix-cache-cleanup branch from 5caa03b to cad35c3 Compare April 28, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants