Skip to content

Commit

Permalink
Only set processed the not processed InternalTxDecoded
Browse files Browse the repository at this point in the history
- Previously all were updated
  • Loading branch information
Uxio0 committed Sep 26, 2024
1 parent 0e3e9be commit fc8e7e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion safe_transaction_service/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "5.9.0"
__version__ = "5.9.1"
__version_info__ = tuple(
int(num) if num.isdigit() else num
for num in __version__.replace("-", ".", 1).split(".")
Expand Down
6 changes: 3 additions & 3 deletions safe_transaction_service/history/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ def process_decoded_internal_txs_task(self) -> Optional[int]:
# Mark traces as processed so they are not reprocessed all the time
# If not, `InternalTxDecoded` index with `decoded=True` can grow to
# a point were `safes_pending_to_be_processed` takes minutes to complete
InternalTxDecoded.objects.for_safe(safe_to_process).update(
processed=True
)
InternalTxDecoded.objects.for_safe(
safe_to_process
).not_processed().update(processed=True)
else:
count += 1
process_decoded_internal_txs_for_safe_task.delay(
Expand Down

0 comments on commit fc8e7e6

Please sign in to comment.