Compatibility with gitlab-sidekiq-fetcher #614
fernandomm
started this conversation in
General
Replies: 1 comment
-
I've been thinking about writing my own fetcher because of these types of problems. I'll have a look at their fetcher sometime next week. Always did seem like a more reliable fetcher should be part of this gem but I never had time to look into it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using https://gitlab.com/gitlab-org/sidekiq-reliable-fetch in order to increase reliability and avoid losing jobs.
When a worker is killed ( even with kill -9 ), it will enqueue the job again ( relevant code https://gitlab.com/gitlab-org/sidekiq-reliable-fetch/-/blob/master/lib/sidekiq/base_reliable_fetch.rb#L166 ):
But depending on the used lock it will be discarded since the lock still exists:
In this case, the lock options are:
So, i'm asking here just in case someone is using a similar setup and has fixed this problem. Is there an easy method of removing the lock when worker dies and before gitlab-sidekiq-fetcher enqueues the job?
The only thing that I could think of is to monkey-patch gitlab-sidekiq-fetcher.
Beta Was this translation helpful? Give feedback.
All reactions