Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/workers/build_success_worker.rb')
-rw-r--r--app/workers/build_success_worker.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/app/workers/build_success_worker.rb b/app/workers/build_success_worker.rb
index f5baa220715..b937dbf298a 100644
--- a/app/workers/build_success_worker.rb
+++ b/app/workers/build_success_worker.rb
@@ -13,15 +13,5 @@ class BuildSuccessWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace :pipeline_processing
urgency :high
- def perform(build_id)
- Ci::Build.find_by_id(build_id).try do |build|
- stop_environment(build) if build.stops_environment? && build.stop_action_successful?
- end
- end
-
- private
-
- def stop_environment(build)
- build.persisted_environment.fire_state_event(:stop_complete)
- end
+ def perform(build_id); end
end