Fixed bug: Exchange sync does not show current import state statistic.
This commit is contained in:
parent
8b3b90b9d0
commit
eebe7ccdc4
1 changed files with 5 additions and 1 deletions
|
@ -23,8 +23,12 @@ class Sequencer
|
|||
|
||||
def store?
|
||||
return true if import_job.updated_at.blank?
|
||||
next_update_at < Time.zone.now
|
||||
end
|
||||
|
||||
def next_update_at
|
||||
# update every 10 seconds to reduce DB load
|
||||
import_job.updated_at > Time.zone.now + 10.seconds
|
||||
import_job.updated_at + 10.seconds
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue