diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-11-06 11:45:39 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-11-06 11:45:39 +0900 |
commit | 56226498bf74f3b8c31d76bd99e35af68ad7d2f4 (patch) | |
tree | c93cff177a9a63217c69df6cb305a00d37f21532 | |
parent | 5f47ebaa6c8e675637459649e541c3a48f174cb5 (diff) | |
download | gitlab-ce-56226498bf74f3b8c31d76bd99e35af68ad7d2f4.tar.gz |
Use fire_state_event
-rw-r--r-- | app/workers/build_success_worker.rb | 2 |
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 |