Prevent StateMachine warnings from outputting during a cron task
[ci skip] Closes #5931
This commit is contained in:
parent
8a028cf3a2
commit
e8785ded1e
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue