-
- Downloads
Build deploy hook payload in-request
This change builds the deploy web hook payload in the request, rather than delayed through `Deployments::HooksWorker`. Once the payload is built, it is sent to the queue via `WebHookWorker` and the webhook executes on the queue, as normal. This change is behind a feature flag to allow us to test whether the change will fix a problem for a particular customer who has some webhook payloads containing a "status" of "running" when the deployment has finished, when the status should be "succeeded". https://gitlab.com/gitlab-org/gitlab/-/issues/355903
Showing
- app/models/deployment.rb 10 additions, 2 deletionsapp/models/deployment.rb
- config/feature_flags/development/deployment_hooks_skip_worker.yml 8 additions, 0 deletions...eature_flags/development/deployment_hooks_skip_worker.yml
- ee/spec/services/ci/process_build_service_spec.rb 0 additions, 1 deletionee/spec/services/ci/process_build_service_spec.rb
- spec/models/ci/build_spec.rb 18 additions, 4 deletionsspec/models/ci/build_spec.rb
- spec/models/deployment_spec.rb 100 additions, 13 deletionsspec/models/deployment_spec.rb
- spec/services/deployments/create_service_spec.rb 30 additions, 7 deletionsspec/services/deployments/create_service_spec.rb
- spec/services/deployments/update_environment_service_spec.rb 1 addition, 1 deletionspec/services/deployments/update_environment_service_spec.rb
Please register or sign in to comment