Skip to content
Snippets Groups Projects
Verified Commit 946d87d3 authored by Gregory Stark's avatar Gregory Stark Committed by Yorick Peterse
Browse files

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

parent ad1c186e
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -659,7 +659,8 @@ class Project < ActiveRecord::Base
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?
Loading
Loading
---
title: check the import_status field before doing SQL operations to check the import
url
merge_request:
author:
type: performance
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment