Skip to main content
Glama
Kaiohz

Prospectio MCP API

task_manager.py1.35 kB
from abc import ABC, abstractmethod from typing import Any from domain.entities.task import Task class TaskManagerPort(ABC): """ Port for managing background tasks. """ @abstractmethod async def submit_task(self, task_id: str) -> Task: """ Submit a coroutine as a background task. Args: task_id (str): Unique task identifier. coro: The coroutine to run. Returns: str: The task ID. """ pass @abstractmethod async def update_task(self, task_id: str, message: str, status: str) -> Task: """ Update the status of a background task. Args: task_id (str): Unique task identifier. Returns: str: The updated task ID. """ pass @abstractmethod async def get_task_status(self, task_id: str) -> Task: """ Get the status of a task. Args: task_id (str): The task ID. Returns: Task: The task entity with status. """ pass @abstractmethod async def remove_task(self, task_id: str) -> None: """ Remove a completed or failed task from the manager. Args: task_id (str): The task ID to remove. Returns: None """ pass

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kaiohz/prospectio-api-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server