lib/queue_classic/queue.rb
def enqueue_in(seconds, method, *args)
      QC.log_yield(:measure => 'queue.enqueue') do
        s = "INSERT INTO #{QC.table_name} (q_name, method, args, scheduled_at)
             VALUES ($1, $2, $3, now() + interval '#{seconds.to_i} seconds')
             RETURNING id"
        conn_adapter.execute(s, name, method, JSON.dump(args))
      end
    end
def enqueue_in(seconds, method, *args)
      QC.log_yield(:measure => 'queue.enqueue') do
        s = "INSERT INTO #{QC.table_name} (q_name, method, args, scheduled_at)
             VALUES ($1, $2, $3, now() + interval '#{seconds.to_i} seconds')
             RETURNING id"
        conn_adapter.execute(s, name, method, JSON.dump(args))
      end
    end
enqueue_in(t,m,a) inserts a row into the jobs table representing a job
 to be executed not before the specified time offset.
 The seconds argument must be an integer. The method and args argument
 must be in the form described in the documentation for the #enqueue
 method.
 This method returns a hash with the id of the enqueued job.