aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_job/queue_adapters
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_job/queue_adapters')
-rw-r--r--lib/active_job/queue_adapters/inline_adapter.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/active_job/queue_adapters/inline_adapter.rb b/lib/active_job/queue_adapters/inline_adapter.rb
index d116520285..50d14a321d 100644
--- a/lib/active_job/queue_adapters/inline_adapter.rb
+++ b/lib/active_job/queue_adapters/inline_adapter.rb
@@ -6,16 +6,8 @@ module ActiveJob
job.new.execute *args
end
- def enqueue_at(job, timestamp, *args)
- Thread.new do
- begin
- interval = Time.now.to_f - timestamp
- sleep(interval) if interval > 0
- job.new.execute *args
- rescue => e
- ActiveJob::Base.logger.info "Error performing #{job}: #{e.message}"
- end
- end
+ def enqueue_at(*)
+ raise NotImplementedError.new("Use a queueing backend to enqueue jobs in the future. Read more at https://github.com/rails/activejob")
end
end
end