Skip to content

Commit

Permalink
feat: add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Sep 8, 2024
1 parent 8fce52c commit 6dfbbd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keep/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,14 +271,17 @@ async def on_startup():
if KEEP_ARQ_TASK_POOL != KEEP_ARQ_TASK_POOL_NONE:
event_loop = asyncio.get_event_loop()
if KEEP_ARQ_TASK_POOL == KEEP_ARQ_TASK_POOL_ALL:
logger.info("Starting all task pools")

Check warning on line 274 in keep/api/api.py

View check run for this annotation

Codecov / codecov/patch

keep/api/api.py#L274

Added line #L274 was not covered by tests
basic_worker = get_arq_worker(KEEP_ARQ_QUEUE_BASIC)
ai_worker = get_arq_worker(KEEP_ARQ_QUEUE_AI)
event_loop.create_task(basic_worker.async_run())
event_loop.create_task(ai_worker.async_run())
elif KEEP_ARQ_TASK_POOL == KEEP_ARQ_TASK_POOL_AI:
logger.info("Starting AI task pool")

Check warning on line 280 in keep/api/api.py

View check run for this annotation

Codecov / codecov/patch

keep/api/api.py#L280

Added line #L280 was not covered by tests
arq_worker = get_arq_worker(KEEP_ARQ_QUEUE_AI)
event_loop.create_task(arq_worker.async_run())
elif KEEP_ARQ_TASK_POOL == KEEP_ARQ_TASK_POOL_BASIC_PROCESSING:
logger.info("Starting Basic Processing task pool")

Check warning on line 284 in keep/api/api.py

View check run for this annotation

Codecov / codecov/patch

keep/api/api.py#L284

Added line #L284 was not covered by tests
arq_worker = get_arq_worker(KEEP_ARQ_QUEUE_BASIC)
event_loop.create_task(arq_worker.async_run())
else:
Expand Down

0 comments on commit 6dfbbd9

Please sign in to comment.