How often are successful jobs physically deleted in the storage?

I know the retention time is configurable, my question is about the physical deletion.

If retention is set to 1 day for successful jobs. How many times does hangfire attempt to delete expired successful jobs, once a day, once an hour, continuously?

The organization i’m at has a scheduled maintenance job that rebuilds indexes when fragmentation occurs and they’re apparently fighting each other. So i’m trying to figure out is it a scheduling issue between the two or does hangfire just not stop deleting successful jobs that this automated maintenance job isn’t viable with hangfire’s database.

It depends on what Storage implementation you’re using, but for the native Sql Storage, the default internval for checking if records are expired and should be deleted, is 1 hour

1 Like

Thanks! this is exactly what i was looking for.

what about postgresql, i don’t find any option