Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/bulk_imports/tracker.rb')
-rw-r--r--app/models/bulk_imports/tracker.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/models/bulk_imports/tracker.rb b/app/models/bulk_imports/tracker.rb
index d9efd489af5..b5092591019 100644
--- a/app/models/bulk_imports/tracker.rb
+++ b/app/models/bulk_imports/tracker.rb
@@ -21,10 +21,9 @@ class BulkImports::Tracker < ApplicationRecord
validates :stage, presence: true
- delegate :file_extraction_pipeline?, to: :pipeline_class
+ delegate :file_extraction_pipeline?, :abort_on_failure?, to: :pipeline_class
DEFAULT_PAGE_SIZE = 500
- STALE_AFTER = 4.hours
scope :next_pipeline_trackers_for, -> (entity_id) {
entity_scope = where(bulk_import_entity_id: entity_id)
@@ -88,8 +87,4 @@ class BulkImports::Tracker < ApplicationRecord
transition [:created, :started] => :timeout
end
end
-
- def stale?
- created_at < STALE_AFTER.ago
- end
end