2020-07-01 16:08:20 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module AuthorizedProjectUpdate
|
|
|
|
class UserRefreshOverUserRangeWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
feature_category :authentication_and_authorization
|
|
|
|
urgency :low
|
|
|
|
queue_namespace :authorized_project_update
|
|
|
|
deduplicate :until_executing, including_scheduled: true
|
|
|
|
|
|
|
|
idempotent!
|
|
|
|
|
|
|
|
def perform(start_user_id, end_user_id)
|
2021-01-03 14:25:43 +05:30
|
|
|
AuthorizedProjectUpdate::RecalculateForUserRangeService.new(start_user_id, end_user_id).execute
|
2020-07-01 16:08:20 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|