Add priorities to queue tasks
This commit is contained in:
@@ -9,6 +9,12 @@ from .middleware import DbMiddleware, InspectorMiddleware
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
# create a separate actor for backfill export
|
||||
# set to same priority as backfill inspect
|
||||
LIVE_EXPORT_BLOCK_PRIORITY = 1
|
||||
BACKFILL_INSPECT_MANY_BLOCKS_PRIORITY = 0
|
||||
|
||||
|
||||
def inspect_many_blocks_task(
|
||||
after_block: int,
|
||||
before_block: int,
|
||||
|
||||
Reference in New Issue
Block a user