Make Hangfire's SQLite InvisibilityTimeout configurable (30 min is too short for slow local hardware) #505
luizbon
started this conversation in
Ideas & Feature requests
Replies: 1 comment
|
I Couldn't agree more, nice find! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Lingarr.Server/Extensions/ServiceCollectionExtensions.cshardcodes the Hangfire SQLite storage invisibility timeout:On a CPU-only box running a small local model through the
localaiprovider (e.g. Ollama withqwen2.5:3b), a single subtitle file with a few hundred lines can legitimately take longer than 30 minutes to translate line-by-line. Once it does, Hangfire assumes the worker crashed, and the translation request ends upCancelled/requeued - the job never gets a chance to finish, no matter how long you are willing to let it run.This makes
localaieffectively unusable as a fallback tier for larger files on modest hardware, even though the endpoint and model are perfectly capable of finishing the job given enough wall-clock time.Ask
Make
InvisibilityTimeoutconfigurable via an environment variable, following the exact same pattern already used a few lines above it for worker concurrency:Something like:
would let people on slower hardware (or using a large local model) opt into a longer window without needing a custom build. Happy to test if useful.
All reactions