58371efbb0
Adds import jid to projects Refactor middleware to set custom expiration time via sidekiq options Add completed_jids option to sidekiq status and a few other changes
12 lines
299 B
Ruby
12 lines
299 B
Ruby
module Gitlab
|
|
module SidekiqStatus
|
|
class ClientMiddleware
|
|
def call(_, job, _, _)
|
|
status_expiration = job['status_expiration'] || Gitlab::SidekiqStatus::DEFAULT_EXPIRATION
|
|
|
|
Gitlab::SidekiqStatus.set(job['jid'], status_expiration)
|
|
yield
|
|
end
|
|
end
|
|
end
|
|
end
|