diff options
Diffstat (limited to 'app/workers/authorized_project_update')
-rw-r--r-- | app/workers/authorized_project_update/project_create_worker.rb | 19 | ||||
-rw-r--r-- | app/workers/authorized_project_update/user_refresh_with_low_urgency_worker.rb | 11 |
2 files changed, 30 insertions, 0 deletions
diff --git a/app/workers/authorized_project_update/project_create_worker.rb b/app/workers/authorized_project_update/project_create_worker.rb new file mode 100644 index 00000000000..651849b57ec --- /dev/null +++ b/app/workers/authorized_project_update/project_create_worker.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module AuthorizedProjectUpdate + class ProjectCreateWorker + include ApplicationWorker + + feature_category :authentication_and_authorization + urgency :low + queue_namespace :authorized_project_update + + idempotent! + + def perform(project_id) + project = Project.find(project_id) + + AuthorizedProjectUpdate::ProjectCreateService.new(project).execute + end + end +end diff --git a/app/workers/authorized_project_update/user_refresh_with_low_urgency_worker.rb b/app/workers/authorized_project_update/user_refresh_with_low_urgency_worker.rb new file mode 100644 index 00000000000..19038cb8900 --- /dev/null +++ b/app/workers/authorized_project_update/user_refresh_with_low_urgency_worker.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module AuthorizedProjectUpdate + class UserRefreshWithLowUrgencyWorker < ::AuthorizedProjectsWorker + feature_category :authentication_and_authorization + urgency :low + queue_namespace :authorized_project_update + + idempotent! + end +end |