Add priorities to queue tasks

This commit is contained in:
Luke Van Seters
2022-02-15 10:25:08 -05:00
parent 0f4cd2f31d
commit a58863b992
3 changed files with 28 additions and 6 deletions

View File

@@ -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,