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
| Name | Required | Description | Default |
|---|---|---|---|
| work_queue_id | Yes |
Implementation Reference
- src/mcp_prefect/work_queue.py:227-248 (handler)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()))]