Class: AuthorizedProjectsWorker
Constant Summary
ApplicationWorker::LOGGING_EXTRA_KEY, ApplicationWorker::SAFE_PUSH_BULK_LIMIT
WorkerAttributes::DEFAULT_DATA_CONSISTENCY, WorkerAttributes::NAMESPACE_WEIGHTS, WorkerAttributes::VALID_DATA_CONSISTENCIES, WorkerAttributes::VALID_RESOURCE_BOUNDARIES, WorkerAttributes::VALID_URGENCIES
Class Method Summary
collapse
Instance Method Summary
collapse
#job_version
#with_context
Class Method Details
21
22
|
# File 'app/workers/authorized_projects_worker.rb', line 21
def self.bulk_perform_and_wait(args_list, timeout: 10)
end
|
24
25
|
# File 'app/workers/authorized_projects_worker.rb', line 24
def self.bulk_perform_inline(args_list)
end
|
Instance Method Details
28
29
30
31
32
|
# File 'app/workers/authorized_projects_worker.rb', line 28
def perform(user_id)
user = User.find_by_id(user_id)
user&.refresh_authorized_projects(source: self.class.name)
end
|