Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
richrliu committed Sep 26, 2024
1 parent 28e42b5 commit 8c9da68
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dramatiq_abort/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ def before_process_message(

event = self.backend.poll(self.id_to_key(message.message_id, AbortMode.CANCEL))
if event:
message.options["aborted_or_skipped"] = True
raise SkipMessage()

self.manager.add_abortable(message.message_id)
message.options["aborted_or_skipped"] = True

def after_process_message(
self,
Expand Down

0 comments on commit 8c9da68

Please sign in to comment.