gitlab-org--gitlab-foss/app/workers/cluster_project_configure_worker.rb
Thong Kuah e3188eb13e Shift to class methods for RefreshService
As we don't use any instance attributes and we don't seem to have any
commonalities between the cluster and the project variant.
2018-12-05 11:57:02 +13:00

12 lines
275 B
Ruby

# frozen_string_literal: true
class ClusterProjectConfigureWorker
include ApplicationWorker
include ClusterQueue
def perform(project_id)
project = Project.find(project_id)
::Clusters::RefreshService.create_or_update_namespaces_for_project(project)
end
end