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
7 changes: 0 additions & 7 deletions python/ray/serve/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1582,13 +1582,6 @@ def stop_consumer(self, timeout: float = 10.0):
"""
pass

@abstractmethod
def shutdown(self):
"""
Shutdown the task processor and clean up resources.
"""
pass

@abstractmethod
def cancel_task_sync(self, task_id: str):
"""
Expand Down
1 change: 0 additions & 1 deletion python/ray/serve/task_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def initialize_callable(self, consumer_concurrency: int):

def __del__(self):
self._adapter.stop_consumer()
self._adapter.shutdown()

if hasattr(target_cls, "__del__"):
target_cls.__del__(self)
Expand Down
5 changes: 0 additions & 5 deletions python/ray/serve/task_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,6 @@ def stop_consumer(self, timeout: float = 10.0):

self._worker_thread = None

def shutdown(self):
logger.info("Shutting down Celery worker...")
self._app.control.shutdown()
logger.info("Celery worker shutdown complete...")

def cancel_task_sync(self, task_id):
"""
Cancels a task synchronously. Only supported for Redis and RabbitMQ brokers by Celery.
Expand Down
4 changes: 0 additions & 4 deletions python/ray/serve/tests/unit/test_task_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class MockTaskProcessorAdapter(TaskProcessorAdapter):

_start_consumer_received: bool = False
_stop_consumer_received: bool = False
_shutdown_received: bool = False

def __init__(self, config: TaskProcessorConfig):
self._config = config
Expand All @@ -46,9 +45,6 @@ def start_consumer(self, **kwargs):
def stop_consumer(self, timeout: float = 10.0):
self._stop_consumer_received = True

def shutdown(self):
self._shutdown_received = True

def cancel_task_sync(self, task_id) -> bool:
pass

Expand Down