module BackgroundJobs::JobIdGenerator::ClassMethods

Public Instance Methods

generate_job_id() click to toggle source
# File lib/background_jobs/job_id_generator.rb, line 10
def generate_job_id
  Digest::SHA256.hexdigest("#{Time.now.to_f}-#{rand(0)}")
end