ee/connectors/consumer_pool: make the number of workers configurable

This commit is contained in:
Amirouche BOUBEKKI 2023-10-31 11:07:22 +01:00
parent 0057553404
commit 144a930193

View file

@ -10,7 +10,7 @@ def main():
database_api = DBConnection(DATABASE)
allowed_projects = config('PROJECT_IDS', default=None, cast=Csv(int))
w_pool = WorkerPool(n_workers=60,
w_pool = WorkerPool(n_workers=config('OR_EE_CONNECTOR_WORKER_COUNT'),
project_filter=allowed_projects)
try:
w_pool.load_checkpoint(database_api)