windmill
windmill copied to clipboard
Recycle jobs, audit logs and capture older than X days
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.
cc @sqwishy
Done