mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-04 08:50:24 +02:00
* Initial scaffolding for metrics * iterate * more * More metrics + SyncRecord concept * Add indices, standardize timing * Small cleanup * Address comments
16 lines
334 B
Python
16 lines
334 B
Python
"""Factory stub for running celery worker / celery beat."""
|
|
from celery import Celery
|
|
|
|
from onyx.utils.variable_functionality import set_is_ee_based_on_env_variable
|
|
|
|
set_is_ee_based_on_env_variable()
|
|
|
|
|
|
def get_app() -> Celery:
|
|
from onyx.background.celery.apps.monitoring import celery_app
|
|
|
|
return celery_app
|
|
|
|
|
|
app = get_app()
|