Recover environments that are stuck stopping
When jobs that stop environments fail, the environment can get stuck in a state of "stopping." We want those environments to recover to a state of "available." This commit addresses that concern with the following: - adds a new state event to environments to represent going from "stopping" back to "available" - adds a new worker to fire the state event given the proper conditions - makes deployables enqueue that new worker when they fail - adds changes from worker related rake tasks related to adding a new worker - adds specs - updates environments spec factory Changelog: fixed
显示
- app/models/concerns/ci/deployable.rb 8 个添加, 0 个删除app/models/concerns/ci/deployable.rb
- app/models/environment.rb 4 个添加, 0 个删除app/models/environment.rb
- app/workers/all_queues.yml 9 个添加, 0 个删除app/workers/all_queues.yml
- app/workers/environments/stop_job_failed_worker.rb 23 个添加, 0 个删除app/workers/environments/stop_job_failed_worker.rb
- config/sidekiq_queues.yml 2 个添加, 0 个删除config/sidekiq_queues.yml
- spec/factories/environments.rb 4 个添加, 0 个删除spec/factories/environments.rb
- spec/support/shared_examples/ci/deployable_shared_examples.rb 22 个添加, 0 个删除.../support/shared_examples/ci/deployable_shared_examples.rb
- spec/workers/environments/stop_job_failed_worker_spec.rb 99 个添加, 0 个删除spec/workers/environments/stop_job_failed_worker_spec.rb
加载中
想要评论请 注册 或 登录