Commit 255c9186 authored by John Jarvis's avatar John Jarvis

Merge branch 'fix-runners-timeout-command' into 'master'

Fixes the command that changes Shared Runners timeout.

See merge request gitlab-com/migration!184
parents 922cce8f bdc027dd
Pipeline #88785 passed with stage
in 21 seconds
...@@ -89,7 +89,7 @@ working order, including database replication between the two sites. ...@@ -89,7 +89,7 @@ working order, including database replication between the two sites.
* `sudo crontab -e` to get an editor window, uncomment the line involving rsync * `sudo crontab -e` to get an editor window, uncomment the line involving rsync
1. [ ] ↩️ {+ Fail-back Handler +}: Update GitLab shared runners to expire jobs after 3 hours 1. [ ] ↩️ {+ Fail-back Handler +}: Update GitLab shared runners to expire jobs after 3 hours
* In a Rails console, run: * In a Rails console, run:
* `Ci::Runner.instance_type.update_all(maximum_timeout: 10800)` * `Ci::Runner.instance_type.where("id NOT IN (?)", Ci::Runner.instance_type.joins(:taggings).joins(:tags).where("tags.name = ?", "gitlab-org").pluck(:id)).update_all(maximum_timeout: 10800)`
1. [ ] ↩️ {+ Fail-back Handler +}: Enable access to the azure environment from the 1. [ ] ↩️ {+ Fail-back Handler +}: Enable access to the azure environment from the
outside world outside world
* Staging: Revert https://dev.gitlab.org/cookbooks/chef-repo/merge_requests/2029 * Staging: Revert https://dev.gitlab.org/cookbooks/chef-repo/merge_requests/2029
......
...@@ -134,7 +134,7 @@ first. ...@@ -134,7 +134,7 @@ first.
1. [ ] 🐺 {+ Coordinator +}: Update GitLab shared runners to expire jobs after 1 hour 1. [ ] 🐺 {+ Coordinator +}: Update GitLab shared runners to expire jobs after 1 hour
* In a Rails console, run: * In a Rails console, run:
* `Ci::Runner.instance_type.update_all(maximum_timeout: 3600)` * `Ci::Runner.instance_type.where("id NOT IN (?)", Ci::Runner.instance_type.joins(:taggings).joins(:tags).where("tags.name = ?", "gitlab-org").pluck(:id)).update_all(maximum_timeout: 3600)`
# T minus 1 hour (__FAILOVER_DATE__) [📁](bin/scripts/02_failover/050_t-1h) # T minus 1 hour (__FAILOVER_DATE__) [📁](bin/scripts/02_failover/050_t-1h)
...@@ -579,7 +579,7 @@ unexpected ways. ...@@ -579,7 +579,7 @@ unexpected ways.
* Production: Apply https://dev.gitlab.org/cookbooks/chef-repo/merge_requests/2322 * Production: Apply https://dev.gitlab.org/cookbooks/chef-repo/merge_requests/2322
1. [ ] 🐺 {+ Coordinator +}: Update GitLab shared runners to expire jobs after 3 hours 1. [ ] 🐺 {+ Coordinator +}: Update GitLab shared runners to expire jobs after 3 hours
* In a Rails console, run: * In a Rails console, run:
* `Ci::Runner.instance_type.update_all(maximum_timeout: 10800)` * `Ci::Runner.instance_type.where("id NOT IN (?)", Ci::Runner.instance_type.joins(:taggings).joins(:tags).where("tags.name = ?", "gitlab-org").pluck(:id)).update_all(maximum_timeout: 10800)`
#### Phase 9: Communicate [📁](bin/scripts/02_failover/060_go/p09) #### Phase 9: Communicate [📁](bin/scripts/02_failover/060_go/p09)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment