windmill icon indicating copy to clipboard operation
windmill copied to clipboard

Recycle jobs, audit logs and capture older than X days

Open rubenfiszel opened this issue 3 years ago • 1 comments

Background task that delete jobs, audit logs and capture (see #348 ) older than some configurable arbitrary days, and make a difference for premium and non premium workspaces.

So there would be 6 variables total:

  • delete jobs older than A days for non premium workspace / delete jobs older than A' days for premium workspace
  • delete audit logs older than B days for non premium workspace / ...
  • delete capture logs older than C days ...

Those 6 variables have reasonable default and can be configured with env_variable, where -1 is deactivated

We should probably run this mechanism every day and add some random shift in the start of the interval so that workers started at the same time do not recycle all at the same time.

rubenfiszel avatar Aug 06 '22 10:08 rubenfiszel

cc @sqwishy

rubenfiszel avatar Aug 06 '22 10:08 rubenfiszel

Done

rubenfiszel avatar Jun 06 '23 08:06 rubenfiszel