remove extra return check on error state
the next line checks that workflow_state is running and returns false if it is anything besides running. Change-Id: I38d9015b7e0ab8908d5e7b8ea957d69f0feff024 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/248864 Reviewed-by: Mark Valentine <mvalentine@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Rob Orton <rob@instructure.com> Product-Review: Rob Orton <rob@instructure.com>
This commit is contained in:
parent
eed894608d
commit
6931030d92
|
@ -466,7 +466,6 @@ module AccountReports::ReportHelper
|
|||
return false if account_report.account_report_runners.incomplete.exists?
|
||||
AccountReport.transaction do
|
||||
@account_report.reload(lock: true)
|
||||
return false if account_report.workflow_state == 'error'
|
||||
if @account_report.workflow_state == 'running'
|
||||
@account_report.workflow_state = 'compiling'
|
||||
@account_report.save!
|
||||
|
|
Loading…
Reference in New Issue