Skip to content

Commit

Permalink
chore: pending tx worker not go to dead queue when it fails (#2225)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid authored Oct 10, 2024
1 parent faa0ed3 commit d6bbcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/import_pending_tx_worker.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check every pending transaction in the pool if rejected
class ImportPendingTxWorker
include Sidekiq::Worker
sidekiq_options retry: 1, queue: "pending_tx"
sidekiq_options retry: 1, queue: "pending_tx", dead: false

def perform(data)
committed_tx = CkbTransaction.tx_committed.find_by(tx_hash: data["transaction"]["hash"])
Expand Down

0 comments on commit d6bbcd8

Please sign in to comment.