mistralM

Docs

sideBar

Managing Workflows in Production

Scale, throttle, troubleshoot, and recover workflows that run in production.

These pages help you run workflows at scale and keep them healthy after you deploy them. They cover parallel execution, shared rate limits, API errors, recovery of stuck executions, and runtime information.

In this section

Concurrency patterns: scale your workflows
illustrationWorkflow

Concurrency patterns: scale your workflows

Process thousands of items with the list, chain, and offset pagination executor patterns.

Rate Limiting in Workflows
illustrationTimer

Rate Limiting in Workflows

Control resource consumption with rate limits shared across the workers and workflows of a deployment.

API Error Codes
illustrationWarning

API Error Codes

Look up the WF_XXXX error codes that the Workflows API returns.

Resetting Workflows
illustrationGear

Resetting Workflows

Restart an execution from a specific point in its event history, for example after a non-determinism error or a bug fix.

Execution Context
illustrationStar

Execution Context

Access runtime information, such as the execution ID, from within workflow code.

Choose a concurrency approach

For fewer than about 10,000 activities, asyncio.gather works well and keeps your code simple. Use the concurrency framework when you need automatic continue-as-new or progress tracking, or when a large dataset could exceed the 51,200-event history limit. See Concurrency patterns: scale your workflows.