Permalink
Browse files

Disable cleaning, fixed: nil can't be coerced into Fixnum

  • Loading branch information...
1 parent 4a881f7 commit 1e721a863f550180c3c1984f777a92df84131989 @avokhmin avokhmin committed Feb 25, 2014
Showing with 7 additions and 7 deletions.
  1. +1 −1 app/models/build_list_observer.rb
  2. +6 −6 config/resque_schedule.yml
@@ -20,7 +20,7 @@ def before_update(record)
retry
end
build_count = statistic.build_count.to_i
- new_av_time = ( statistic.average_build_time * build_count + record.duration ) / ( build_count + 1 )
+ new_av_time = ( statistic.average_build_time * build_count + record.duration.to_i ) / ( build_count + 1 )
statistic.update_attributes(average_build_time: new_av_time, build_count: build_count + 1)
end
end
View
@@ -12,9 +12,9 @@ build_lists_publish_task_manager:
queue: hook
description: 'Creates tasks for publishing'
-clean_build_lists_queues:
- every:
- - '1m'
- class: 'CleanBuildListsQueuesJob'
- queue: hook
- description: 'Cleans build_lists queues'
+# clean_build_lists_queues:
+# every:
+# - '1m'
+# class: 'CleanBuildListsQueuesJob'
+# queue: hook
+# description: 'Cleans build_lists queues'

0 comments on commit 1e721a8

Please sign in to comment.