summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-06-29 15:22:06 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-07-07 15:08:15 +0200
commit01128b130b32fac3481fb3b386b649cb047b4b1f (patch)
tree89b16c01c6a8dbe1a5a65d058a325671aba2b5f3 /app/workers
parent989785a31def17a1f0b29b84f8920db96ccf80b1 (diff)
downloadgitlab-ce-01128b130b32fac3481fb3b386b649cb047b4b1f.tar.gz
Use integers to schedule delayed background migrations
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/background_migration_worker.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/background_migration_worker.rb b/app/workers/background_migration_worker.rb
index 23c297de8bc..e6ca1159b38 100644
--- a/app/workers/background_migration_worker.rb
+++ b/app/workers/background_migration_worker.rb
@@ -17,8 +17,8 @@ class BackgroundMigrationWorker
# Schedules multiple jobs in bulk, with a delay.
#
def self.perform_bulk_in(delay, jobs)
- now = Time.now.to_f
- schedule = now + delay.to_f
+ now = Time.now.to_i
+ schedule = now + delay.to_i
raise ArgumentError if schedule <= now