Commit 2dd9c995 authored by Greg Stark's avatar Greg Stark Committed by Yorick Peterse
Browse files

check the import_status field before doing SQL operations to check the import url

parent 3b5904ca789f
......@@ -659,7 +659,8 @@ def import_in_progress?
end
def import_started?
import? && import_status == 'started'
# import? does SQL work so only run it if it looks like there's an import running
import_status == 'started' && import?
end
def import_scheduled?
......
---
title: check the import_status field before doing SQL operations to check the import
url
merge_request:
author:
type: performance
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