2016-10-11 08:25:17 -04:00
|
|
|
class AuthorizedProjectsWorker
|
|
|
|
include Sidekiq::Worker
|
|
|
|
include DedicatedSidekiqQueue
|
|
|
|
|
|
|
|
def self.bulk_perform_async(args_list)
|
|
|
|
Sidekiq::Client.push_bulk('class' => self, 'args' => args_list)
|
|
|
|
end
|
|
|
|
|
|
|
|
def perform(user_id)
|
|
|
|
user = User.find_by(id: user_id)
|
|
|
|
|
2016-12-06 11:31:58 -05:00
|
|
|
user.refresh_authorized_projects if user
|
2016-10-11 08:25:17 -04:00
|
|
|
end
|
|
|
|
end
|