提交 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: ...@@ -21,8 +21,7 @@ def enqueue(job) #:nodoc:
Sidekiq::Client.push \ Sidekiq::Client.push \
'class' => JobWrapper, 'class' => JobWrapper,
'queue' => job.queue_name, 'queue' => job.queue_name,
'args' => [ job.serialize ], 'args' => [ job.serialize ]
'retry' => true
end end
def enqueue_at(job, timestamp) #:nodoc: def enqueue_at(job, timestamp) #:nodoc:
...@@ -30,7 +29,6 @@ def enqueue_at(job, timestamp) #:nodoc: ...@@ -30,7 +29,6 @@ def enqueue_at(job, timestamp) #:nodoc:
'class' => JobWrapper, 'class' => JobWrapper,
'queue' => job.queue_name, 'queue' => job.queue_name,
'args' => [ job.serialize ], 'args' => [ job.serialize ],
'retry' => true,
'at' => timestamp 'at' => timestamp
end end
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册