mastodon-twitter-poster icon indicating copy to clipboard operation
mastodon-twitter-poster copied to clipboard

Clear locked jobs on sidekiq server start?

Open renatolond opened this issue 3 years ago • 3 comments

In certain cases it can happen that a job got into a stuck state (server reboot during the job execution and so on) and it's lock was never released. One way to fix this would be to check locked users on sidekiq boot and unlock them. Need to make sure this does not conflict with current strategy of adding jobs to the queues. Cannot unlock dead jobs.

Relates to #483

renatolond avatar Jan 29 '21 08:01 renatolond

Do we need a lock per user in db ? Can we have a recurring task per user instead ? Sidekiq support lock per job no ?

HugoPoi avatar Jun 20 '21 16:06 HugoPoi

How would you suggest a recurring task per user? I'm not aware of a way to locking per job using sidekiq

renatolond avatar Jun 21 '21 09:06 renatolond

How would you suggest a recurring task per user?

I think yes.

HugoPoi avatar Jun 25 '21 18:06 HugoPoi