Prevent StateMachine warnings from outputting during a cron task
Prevent StateMachine warnings from outputting during a cron task

[ci skip]

Closes #5931

Datacom/gitlabhq,mmkassem/gitlabhq,SVArago/gitlabhq,larryli/gitlabhq,dwrensha/gitlabhq,jrjang/gitlab-ce,larryli/gitlabhq,screenpages/gitlabhq,martijnvermaat/gitlabhq,duduribeiro/gitlabhq,mrb/gitlabhq,darkrasid/gitlabhq,yatish27/gitlabhq,allysonbarros/gitlabhq,Soullivaneuh/gitlabhq,larryli/gitlabhq,stoplightio/gitlabhq,yatish27/gitlabhq,screenpages/gitlabhq,Soullivaneuh/gitlabhq,mmkassem/gitlabhq,SVArago/gitlabhq,mrb/gitlabhq,SVArago/gitlabhq,allysonbarros/gitlabhq,t-zuehlsdorff/gitlabhq,dreampet/gitlab,axilleas/gitlabhq,daiyu/gitlab-zh,shinexiao/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,openwide-java/gitlabhq,htve/GitlabForChinese,Soullivaneuh/gitlabhq,shinexiao/gitlabhq,mr-dxdy/gitlabhq,dreampet/gitlab,jrjang/gitlabhq,darkrasid/gitlabhq,jrjang/gitlabhq,openwide-java/gitlabhq,duduribeiro/gitlabhq,screenpages/gitlabhq,yatish27/gitlabhq,openwide-java/gitlabhq,darkrasid/gitlabhq,ttasanen/gitlabhq,iiet/iiet-git,allysonbarros/gitlabhq,dplarson/gitlabhq,jrjang/gitlab-ce,mrb/gitlabhq,daiyu/gitlab-zh,t-zuehlsdorff/gitlabhq,SVArago/gitlabhq,stoplightio/gitlabhq,jirutka/gitlabhq,LUMC/gitlabhq,jrjang/gitlabhq,iiet/iiet-git,ttasanen/gitlabhq,jrjang/gitlab-ce,mr-dxdy/gitlabhq,Datacom/gitlabhq,jrjang/gitlabhq,icedwater/gitlabhq,allysonbarros/gitlabhq,LUMC/gitlabhq,iiet/iiet-git,htve/GitlabForChinese,shinexiao/gitlabhq,dplarson/gitlabhq,dwrensha/gitlabhq,mmkassem/gitlabhq,ttasanen/gitlabhq,axilleas/gitlabhq,yatish27/gitlabhq,martijnvermaat/gitlabhq,LUMC/gitlabhq,Soullivaneuh/gitlabhq,LUMC/gitlabhq,mmkassem/gitlabhq,htve/GitlabForChinese,openwide-java/gitlabhq,jrjang/gitlab-ce,daiyu/gitlab-zh,axilleas/gitlabhq,icedwater/gitlabhq,iiet/iiet-git,mr-dxdy/gitlabhq,Datacom/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,duduribeiro/gitlabhq,ttasanen/gitlabhq,htve/GitlabForChinese,stoplightio/gitlabhq,darkrasid/gitlabhq,mr-dxdy/gitlabhq,dplarson/gitlabhq,mrb/gitlabhq,dwrensha/gitlabhq,icedwater/gitlabhq,dreampet/gitlab,icedwater/gitlabhq,dplarson/gitlabhq,dwrensha/gitlabhq,axilleas/gitlabhq,martijnvermaat/gitlabhq,duduribeiro/gitlabhq,larryli/gitlabhq,dreampet/gitlab,t-zuehlsdorff/gitlabhq,screenpages/gitlabhq,martijnvermaat/gitlabhq,daiyu/gitlab-zh,Datacom/gitlabhq,stoplightio/gitlabhq,shinexiao/gitlabhq