Module: BackgroundJobs::JobIdGenerator::ClassMethods
- Defined in:
- lib/background_jobs/job_id_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_job_id ⇒ Object
10 11 12 |
# File 'lib/background_jobs/job_id_generator.rb', line 10 def generate_job_id Digest::SHA256.hexdigest("#{Time.now.to_f}-#{rand(0)}") end |