759dab5b69
The flag is on by default, but allows us to revert back to the old behaviour if we encounter any problems.
14 lines
351 B
Ruby
14 lines
351 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ClusterProjectConfigureWorker
|
|
include ApplicationWorker
|
|
include ClusterQueue
|
|
|
|
def perform(project_id)
|
|
return if Feature.enabled?(:ci_preparing_state, default_enabled: true)
|
|
|
|
project = Project.find(project_id)
|
|
|
|
::Clusters::RefreshService.create_or_update_namespaces_for_project(project)
|
|
end
|
|
end
|