Remove priorities
This commit is contained in:
parent
fe9253ca5e
commit
b486d53012
4
cli.py
4
cli.py
@ -184,8 +184,8 @@ def enqueue_many_s3_exports(after_block: int, before_block: int):
|
||||
export_actor = dramatiq.actor(
|
||||
export_block_task,
|
||||
broker=broker,
|
||||
queue_name=HIGH_PRIORITY_QUEUE,
|
||||
priority=HIGH_PRIORITY,
|
||||
queue_name=LOW_PRIORITY_QUEUE,
|
||||
priority=LOW_PRIORITY,
|
||||
)
|
||||
logger.info(f"Sending blocks {after_block} to {before_block} to queue")
|
||||
for block_number in range(after_block, before_block):
|
||||
|
@ -11,8 +11,6 @@ from mev_inspect.queue.middleware import (
|
||||
InspectorMiddleware,
|
||||
)
|
||||
from mev_inspect.queue.tasks import (
|
||||
HIGH_PRIORITY,
|
||||
HIGH_PRIORITY_QUEUE,
|
||||
LOW_PRIORITY,
|
||||
LOW_PRIORITY_QUEUE,
|
||||
export_block_task,
|
||||
@ -30,6 +28,4 @@ dramatiq.set_broker(broker)
|
||||
dramatiq.actor(
|
||||
inspect_many_blocks_task, queue_name=LOW_PRIORITY_QUEUE, priority=LOW_PRIORITY
|
||||
)
|
||||
dramatiq.actor(
|
||||
export_block_task, queue_name=HIGH_PRIORITY_QUEUE, priority=HIGH_PRIORITY
|
||||
)
|
||||
dramatiq.actor(export_block_task)
|
||||
|
Loading…
x
Reference in New Issue
Block a user