提交 1472e0cf 编写于 作者: A Ari Pollak

Don't pass retry option to Sidekiq

* This would override whatever default is configured in Sidekiq
  system-wide, and retry is true by default anyway.
上级 ee9f86e2
......@@ -21,8 +21,7 @@ def enqueue(job) #:nodoc:
Sidekiq::Client.push \
'class' => JobWrapper,
'queue' => job.queue_name,
'args' => [ job.serialize ],
'retry' => true
'args' => [ job.serialize ]
end
def enqueue_at(job, timestamp) #:nodoc:
......@@ -30,7 +29,6 @@ def enqueue_at(job, timestamp) #:nodoc:
'class' => JobWrapper,
'queue' => job.queue_name,
'args' => [ job.serialize ],
'retry' => true,
'at' => timestamp
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册