Commit a431c4d4 authored by Sean McGivern's avatar Sean McGivern

Allow job waiter keys in Sidekiq logs

Job waiter keys do not contain sensitive information, so they're
safe to log. They're also useful to log so we can inspect particular
batches of jobs.
parent 68d2affb
......@@ -7,8 +7,8 @@ class AuthorizedProjectsWorker
feature_category :authentication_and_authorization
urgency :high
weight 2
idempotent!
loggable_arguments 1 # For the job waiter key
# This is a workaround for a Ruby 2.3.7 bug. rspec-mocks cannot restore the
# visibility of prepended modules. See https://github.com/rspec/rspec-mocks/issues/1231
......
......@@ -8,6 +8,7 @@ class ProjectImportScheduleWorker # rubocop:disable Scalability/IdempotentWorker
feature_category :importers
sidekiq_options retry: false
loggable_arguments 1 # For the job waiter key
def perform(project_id)
return if Gitlab::Database.read_only?
......
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