blob: dde46a4e61bc99ccab4047bf4c8a65bd193776cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# frozen_string_literal: true
class AuthorizedProjectsWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
feature_category :system_access
urgency :high
weight 2
idempotent!
loggable_arguments 1 # For the job waiter key
def perform(user_id)
user = User.find_by_id(user_id)
user&.refresh_authorized_projects(source: self.class.name)
end
end
|