Commit 49e826af authored by Ash McKenzie's avatar Ash McKenzie

Merge branch 'kborges/log-exhausted-github-import-jobs' into 'master'

Log Github Import jobs that exhausted retry limits

See merge request gitlab-org/gitlab!32686
parents 32737947 df30147b
......@@ -15,6 +15,17 @@ module Gitlab
# this is better than a project being stuck in the "import" state
# forever.
sidekiq_options dead: false, retry: 5
sidekiq_retries_exhausted do |msg, e|
Gitlab::Import::Logger.error(
event: :github_importer_exhausted,
message: msg['error_message'],
class: msg['class'],
args: msg['args'],
exception_message: e.message,
exception_backtrace: e.backtrace
)
end
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment