summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-11-06 11:45:39 +0900
committerShinya Maeda <shinya@gitlab.com>2018-11-06 11:45:39 +0900
commit56226498bf74f3b8c31d76bd99e35af68ad7d2f4 (patch)
treec93cff177a9a63217c69df6cb305a00d37f21532
parent5f47ebaa6c8e675637459649e541c3a48f174cb5 (diff)
downloadgitlab-ce-56226498bf74f3b8c31d76bd99e35af68ad7d2f4.tar.gz
Use fire_state_event
-rw-r--r--app/workers/build_success_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/build_success_worker.rb b/app/workers/build_success_worker.rb
index 4670cef1a58..9a865fea621 100644
--- a/app/workers/build_success_worker.rb
+++ b/app/workers/build_success_worker.rb
@@ -31,6 +31,6 @@ class BuildSuccessWorker
##
# TODO: This should be processed in DeploymentSuccessWorker once we started storing `action` value in `deployments` records
def stop_environment(build)
- build.persisted_environment.stop
+ build.persisted_environment.fire_state_event(:stop)
end
end