Skip to content

Commit d0b9e78

Browse files
authored
move queue process out of process_current_blocks (#922)
* move queue process out of process_current_blocks * Bump version: 4.5.4 → 4.5.5
1 parent 3c763b9 commit d0b9e78

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 4.5.4
2+
current_version = 4.5.5
33
commit = True
44
tag = True
55

aquarius/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
__author__ = """OceanProtocol"""
1010
# fmt: off
1111
# bumpversion needs single quotes
12-
__version__ = '4.5.4'
12+
__version__ = '4.5.5'
1313
# fmt: on

aquarius/events/events_monitor.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,13 @@ def do_run_monitor(self):
145145
if not self._monitor_is_on:
146146
return
147147

148+
if strtobool(os.getenv("PROCESS_RETRY_QUEUE", "0")):
149+
logger.info("Starting process_queue ....")
150+
try:
151+
self.retry_mechanism.process_queue()
152+
except (KeyError, Exception) as e:
153+
logger.error(f"Error processing queue: {str(e)}.")
154+
148155
try:
149156
logger.info("Starting process_current_blocks ....")
150157
self.process_current_blocks()
@@ -168,10 +175,6 @@ def do_run_monitor(self):
168175

169176
def process_current_blocks(self):
170177
"""Process all blocks from the last processed block to the current block."""
171-
process_queue = strtobool(os.getenv("PROCESS_RETRY_QUEUE", "0"))
172-
173-
if process_queue:
174-
self.retry_mechanism.process_queue()
175178

176179
last_block = self.get_last_processed_block()
177180
current_block = None

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
url="https://github.com/oceanprotocol/aquarius",
9696
# fmt: off
9797
# bumpversion needs single quotes
98-
version='4.5.4',
98+
version='4.5.5',
9999
# fmt: on
100100
zip_safe=False,
101101
)

0 commit comments

Comments
 (0)