Skip to content

Commit 0088c62

Browse files
committed
Use enqueued_at compatible with Sidekiq
Fixes #182
1 parent 48c96d5 commit 0088c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/exq/redis/job_queue.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ defmodule Exq.Redis.JobQueue do
354354
end
355355

356356
def to_job_json(queue, worker, args) do
357-
to_job_json(queue, worker, args, Timex.Time.now(:milliseconds))
357+
to_job_json(queue, worker, args, Timex.Time.now(:microseconds) / 1_000_000.0)
358358
end
359359
def to_job_json(queue, worker, args, enqueued_at) when is_atom(worker) do
360360
to_job_json(queue, to_string(worker), args, enqueued_at)

0 commit comments

Comments
 (0)