taskiq-redis icon indicating copy to clipboard operation
taskiq-redis copied to clipboard

Allow setting of autoclaim timeout

Open rlandingham opened this issue 6 months ago • 2 comments
trafficstars

Running into an issue where if you close a worker while it is trying to get data, it does not gracefully stop the listen command. This causes the lock to be stuck for an entire queue. There shouuld be an option to manually unlock, or set a timeout for the lock in these situations. Realistically the lock should be short lived, so anything over maybe a minute is most likley due to an issue or stuck lock.

rlandingham avatar Apr 24 '25 02:04 rlandingham

That is weird, because we use with statement. Which should correctly remove the lock on raised exception or worker exit. I need to look into it more closely.

s3rius avatar Apr 24 '25 16:04 s3rius

Yeah, I saw the same thing and was surprised. I will also note I see tasks that were mid run get marked as failed with error "Keyboardinterupt", so may only be issue when a process gets hard killed.

rlandingham avatar Apr 24 '25 16:04 rlandingham