Fixed bug: Exchange sync does not show current import state statistic.

This commit is contained in:
Thorsten Eckel 2017-11-30 10:12:28 +01:00
parent 8b3b90b9d0
commit eebe7ccdc4

View file

@ -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