module SidekiqAsyncTask::AsyncJobScheduler

Public Instance Methods

perform_with_transaction_async(*args) click to toggle source
# File lib/sidekiq_async_task/async_job_scheduler.rb, line 19
def perform_with_transaction_async(*args)
  AsyncTask.create_job(self.inspect, args)
end
perform_with_transaction_at( perform_at_time, *args ) click to toggle source
# File lib/sidekiq_async_task/async_job_scheduler.rb, line 14
def perform_with_transaction_at( perform_at_time, *args )
  difference = perform_at_time - Time.now
  AsyncTask.create_job(self.inspect, args, difference.to_i)
end
perform_with_transaction_future(perform_after, *args) click to toggle source
# File lib/sidekiq_async_task/async_job_scheduler.rb, line 23
def perform_with_transaction_future(perform_after, *args)
  AsyncTask.create_future_job!(self.inspect, args, perform_after.to_i)
end
perform_with_transaction_in( perform_after, *args ) click to toggle source
# File lib/sidekiq_async_task/async_job_scheduler.rb, line 10
def perform_with_transaction_in( perform_after, *args )
  AsyncTask.create_job(self.inspect, args, perform_after.to_i)
end