2018-11-15 09:17:41 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ClusterProjectConfigureWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include ClusterQueue
|
|
|
|
|
|
|
|
def perform(project_id)
|
2019-03-12 06:37:37 +00:00
|
|
|
return if Feature.enabled?(:ci_preparing_state, default_enabled: true)
|
|
|
|
|
2018-11-15 09:17:41 +00:00
|
|
|
project = Project.find(project_id)
|
|
|
|
|
2018-12-04 22:57:02 +00:00
|
|
|
::Clusters::RefreshService.create_or_update_namespaces_for_project(project)
|
2018-11-15 09:17:41 +00:00
|
|
|
end
|
|
|
|
end
|