Add environment auto stop worker
This commit adds environment auto stop worker
显示
- app/models/deployment.rb 1 个添加, 0 个删除app/models/deployment.rb
- app/models/environment.rb 39 个添加, 0 个删除app/models/environment.rb
- app/services/ci/stop_environments_service.rb 16 个添加, 0 个删除app/services/ci/stop_environments_service.rb
- app/services/environments/auto_stop_service.rb 38 个添加, 0 个删除app/services/environments/auto_stop_service.rb
- app/workers/all_queues.yml 6 个添加, 0 个删除app/workers/all_queues.yml
- app/workers/environments/auto_stop_cron_worker.rb 16 个添加, 0 个删除app/workers/environments/auto_stop_cron_worker.rb
- config/gitlab.yml.example 3 个添加, 0 个删除config/gitlab.yml.example
- config/initializers/1_settings.rb 3 个添加, 0 个删除config/initializers/1_settings.rb
- db/migrate/20200131140428_create_index_on_auto_stop_in.rb 17 个添加, 0 个删除db/migrate/20200131140428_create_index_on_auto_stop_in.rb
- db/schema.rb 2 个添加, 0 个删除db/schema.rb
- spec/factories/environments.rb 1 个添加, 1 个删除spec/factories/environments.rb
- spec/models/deployment_spec.rb 16 个添加, 0 个删除spec/models/deployment_spec.rb
- spec/models/environment_spec.rb 68 个添加, 1 个删除spec/models/environment_spec.rb
- spec/services/ci/stop_environments_service_spec.rb 51 个添加, 0 个删除spec/services/ci/stop_environments_service_spec.rb
- spec/services/environments/auto_stop_service_spec.rb 94 个添加, 0 个删除spec/services/environments/auto_stop_service_spec.rb
- spec/support/helpers/create_environments_helpers.rb 13 个添加, 0 个删除spec/support/helpers/create_environments_helpers.rb
- spec/workers/environments/auto_stop_cron_worker_spec.rb 17 个添加, 0 个删除spec/workers/environments/auto_stop_cron_worker_spec.rb
想要评论请 注册 或 登录