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