mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-30 17:50:27 +02:00
11 lines
381 B
Python
11 lines
381 B
Python
"""Factory stub for running celery worker / celery beat."""
|
|
from celery import Celery
|
|
|
|
from onyx.utils.variable_functionality import fetch_versioned_implementation
|
|
from onyx.utils.variable_functionality import set_is_ee_based_on_env_variable
|
|
|
|
set_is_ee_based_on_env_variable()
|
|
app: Celery = fetch_versioned_implementation(
|
|
"onyx.background.celery.apps.primary", "celery_app"
|
|
)
|