Class: SidekiqUniqueJobs::UpdateVersion

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq_unique_jobs/update_version.rb

Overview

Class UpdateVersion sets the right version in redis

Author:

Class Method Summary collapse

Class Method Details

.calltrue

Note:

the version isn’t used yet but will be for automatic upgrades

Sets the right versions in redis

Returns:

  • (true)

    when version changed



17
18
19
20
21
22
23
# File 'lib/sidekiq_unique_jobs/update_version.rb', line 17

def self.call
  Script::Caller.call_script(
    :update_version,
    keys: [LIVE_VERSION, DEAD_VERSION],
    argv: [SidekiqUniqueJobs.version],
  )
end