Sha256: 921841b2ea7dad1ff1f2163590ebc9c401c0b4881309cc8539cac21b0806d7bd
Contents?: true
Size: 250 Bytes
Versions: 1
Compression:
Stored size: 250 Bytes
Contents
# frozen_string_literal: true class TestJob < ApplicationJob def perform(data, wait) puts "[Worker ##{$$}] Receiving new job: #{data}" Quiq.current_task.sleep wait puts "[Worker ##{$$}] Time to wake up after #{wait} seconds" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quiq-0.2.0 | testapp/app/jobs/test_job.rb |