mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-10 22:10:52 +02:00
18 lines
498 B
Python
18 lines
498 B
Python
"""Factory stub for running celery worker / celery beat.
|
|
This code is different from the primary/beat stubs because there is no EE version to
|
|
fetch. Port over the code in those files if we add an EE version of this worker."""
|
|
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.indexing import celery_app
|
|
|
|
return celery_app
|
|
|
|
|
|
app = get_app()
|