Merge branch 'develop' of git.znuny.com:zammad/zammad into develop

This commit is contained in:
Martin Edenhofer 2017-11-30 11:13:14 +01:00
commit 122c7167b1
2 changed files with 6 additions and 2 deletions

View file

@ -262,7 +262,7 @@ class Sequencer
remove = !attribute.will_be_used?
remove ||= attribute.to <= @index
if remove && attribute.will_be_used?
logger.debug("Removing unneeded attribute '#{identifier}': #{@values[identifier]}")
logger.debug("Removing unneeded attribute '#{identifier}': #{@values[identifier].inspect}")
end
remove
end

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