mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 04:36:11 +10:00
Merge branch 'rs-silence-statemachine-in-cron' into 'master'
Prevent StateMachine warnings from outputting during a cron task [ci skip] Closes #5931 See merge request !2458
This commit is contained in:
committed by
Robert Speicher
parent
1f1eed47fb
commit
1c233ff5fe
@@ -4,6 +4,9 @@ end
|
||||
|
||||
String.disable_colorization = true unless STDOUT.isatty
|
||||
|
||||
# Prevent StateMachine warnings from outputting during a cron task
|
||||
StateMachines::Machine.ignore_method_conflicts = true if ENV['CRON']
|
||||
|
||||
namespace :gitlab do
|
||||
|
||||
# Ask if the user wants to continue
|
||||
|
||||
Reference in New Issue
Block a user