mirror of
https://github.com/langgenius/dify.git
synced 2026-03-15 14:20:34 +08:00
refactor: inherit ABC in AppQueueManager for proper abstract method usage (#32461)
This commit is contained in:
parent
46f0cebbb0
commit
4c48e3b997
@ -2,7 +2,7 @@ import logging
|
||||
import queue
|
||||
import threading
|
||||
import time
|
||||
from abc import abstractmethod
|
||||
from abc import ABC, abstractmethod
|
||||
from enum import IntEnum, auto
|
||||
from typing import Any
|
||||
|
||||
@ -31,7 +31,7 @@ class PublishFrom(IntEnum):
|
||||
TASK_PIPELINE = auto()
|
||||
|
||||
|
||||
class AppQueueManager:
|
||||
class AppQueueManager(ABC):
|
||||
def __init__(self, task_id: str, user_id: str, invoke_from: InvokeFrom):
|
||||
if not user_id:
|
||||
raise ValueError("user is required")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user