Reduce priority of multiple simulataneous trace imports
This commit is contained in:
parent
33d292e981
commit
9444ad494f
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ class Trace < ApplicationRecord
|
|||
end
|
||||
|
||||
def schedule_import
|
||||
TraceImporterJob.perform_later(self)
|
||||
TraceImporterJob.new(self).enqueue(:priority => user.traces.where(:inserted => false).count)
|
||||
end
|
||||
|
||||
def schedule_destruction
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue