Commit 1edd063a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add description to exception in bg migrations worker

parent 9c229031
...@@ -20,7 +20,7 @@ class BackgroundMigrationWorker ...@@ -20,7 +20,7 @@ class BackgroundMigrationWorker
now = Time.now.to_i now = Time.now.to_i
schedule = now + delay.to_i schedule = now + delay.to_i
raise ArgumentError if schedule <= now raise ArgumentError, 'Delay time invalid!' if schedule <= now
Sidekiq::Client.push_bulk('class' => self, Sidekiq::Client.push_bulk('class' => self,
'queue' => sidekiq_options['queue'], 'queue' => sidekiq_options['queue'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment