Skip to main content
Glama

resume_work_queue

Resume a paused work queue in Prefect to restart workflow execution. Provide the work queue UUID to activate queued tasks and resume automated processes.

Instructions

Resume a work queue.

Args: work_queue_id: The work queue UUID

Returns: Details of the updated work queue

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
work_queue_idYes

Implementation Reference

  • The implementation of the 'resume_work_queue' tool. This async function is decorated with @mcp.tool, which registers it as an MCP tool. It takes a work_queue_id, unpauses the queue via Prefect client (sets is_paused=False), reads the updated queue, and returns its details as text content.
    @mcp.tool async def resume_work_queue( work_queue_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Resume a work queue. Args: work_queue_id: The work queue UUID Returns: Details of the updated work queue """ async with get_client() as client: await client.update_work_queue( id=UUID(work_queue_id), is_paused=False ) # Read the updated work queue to return its details updated_work_queue = await client.read_work_queue(UUID(work_queue_id)) return [types.TextContent(type="text", text=str(updated_work_queue.model_dump()))]

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/allen-munsch/mcp-prefect'

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