Add separate queue names to consume both then internally prioritize

This commit is contained in:
Luke Van Seters
2022-02-15 11:59:04 -05:00
parent 94f4ec7d40
commit 7a3f3874b6
3 changed files with 19 additions and 13 deletions

View File

@@ -9,11 +9,11 @@ from .middleware import DbMiddleware, InspectorMiddleware
logger = logging.getLogger(__name__)
# when we have export backfill,
# create a separate actor for backfill export
# and set to same priority as backfill inspect
LIVE_EXPORT_BLOCK_PRIORITY = 0
BACKFILL_INSPECT_MANY_BLOCKS_PRIORITY = 1
HIGH_PRIORITY_QUEUE = "high"
LOW_PRIORITY_QUEUE = "low"
HIGH_PRIORITY = 0
LOW_PRIORITY = 1
def inspect_many_blocks_task(