Permalink
Browse files

Switch to NIE

  • Loading branch information...
1 parent b48050d commit 0c46094c770f233a6d3aa4660c84c9b9b4248d30 @mperham mperham committed May 20, 2014
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/active_job/queue_adapters/sucker_punch_adapter.rb
@@ -9,7 +9,7 @@ def queue(job, *args)
end
def queue_at(job, timestamp, *args)
- JobWrapper.new.async.later(timestamp, job, *args)
+ raise NotImplementedError
end
end
@@ -19,11 +19,6 @@ class JobWrapper
def perform(job, *args)
job.new.perform *Parameters.deserialize(args)
end
-
- def later(sec, job_name, *args)
- delay = Time.now.to_f - sec
- after(delay > 0 ? delay : 0) { perform(job_name, *args) }
- end
end
end
end

2 comments on commit 0c46094

@jGRUBBS

@mperham why did you remove the later method and raise NIE? I haven't specifically tested this myself, but the later method seems to be appropriate here.

@mperham

Find the associated PR and conversation for this commit.

Please sign in to comment.