pieceofsummer / Hangfire.Console

Job console extension for Hangfire
MIT License
436 stars 80 forks source link

FollowJobRetentionPolicy not working with Hangfire.Pro.Redis #113

Open vdolek opened 3 years ago

vdolek commented 3 years ago

I am using Hangfire.Console and I have problem with console retention with FollowJobRetentionPolicy set to true (by default). I assume that when I delete a job, it should set TTL parameter to the Redis key (same as job Redis key), but this does not happen. Redis keys with console log have always TTL empty, so the console logs are never deleted and consumes a lot of Redis memory.

Used versions: Hangfire.Core 1.7.24, Hangfire.Console 1.4.2, Hangfire.Pro 2.3.0 and Hangfire.Pro.Redis 2.8.10.