Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
114 changes: 0 additions & 114 deletions backend/backend/worker_celery.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from utils.local_context import StateStore
from utils.subscription_usage_decorator import track_subscription_usage_if_available

from backend.celery_service import app as celery_app
from prompt_studio.prompt_profile_manager_v2.models import ProfileManager
from prompt_studio.prompt_profile_manager_v2.profile_manager_helper import (
ProfileManagerHelper,
Expand Down Expand Up @@ -273,16 +274,8 @@ def _publish_log(

@staticmethod
def _get_dispatcher() -> ExecutionDispatcher:
"""Get an ExecutionDispatcher backed by the worker Celery app.

Uses the RabbitMQ-backed Celery app (not the Django Redis one)
so tasks reach the worker-v2 executor worker.
"""
from backend.worker_celery import (
get_worker_celery_app, # Lazy import: avoids Django/Celery circular init
)

return ExecutionDispatcher(celery_app=get_worker_celery_app())
"""Get an ExecutionDispatcher for the executor worker."""
return ExecutionDispatcher(celery_app=celery_app)

@staticmethod
def _get_platform_api_key(org_id: str) -> str:
Expand Down
Loading