Method: Cron::Server.primary_server

Defined in:
lib/app/jobs/cron/server.rb

.primary_serverObject

Find a the current master



84
85
86
# File 'lib/app/jobs/cron/server.rb', line 84

def self.primary_server
  Cron::Server.where(state: STATE_PRIMARY).first
end