Skip to main content
Glama

pause_work_queue

Stop a Prefect work queue from processing new workflow runs by providing its UUID, temporarily halting automated task execution.

Instructions

Pause 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 'pause_work_queue' tool handler. This async function is decorated with @mcp.tool, which registers it as an MCP tool. It uses the Prefect client to update the specified work queue by setting is_paused=True and returns the details of the updated work queue.
    @mcp.tool async def pause_work_queue( work_queue_id: str, ) -> List[Union[types.TextContent, types.ImageContent, types.EmbeddedResource]]: """ Pause 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=True ) # 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