github cloudflare/workers-sdk @cloudflare/workflows-shared@0.5.0

Minor Changes

  • #12622 bf9cb3d Thanks @LuisDuarte1! - Add configurable step limits for Workflows

    You can now set a maximum number of steps for a Workflow instance via the limits.steps configuration in your Wrangler config. When a Workflow instance exceeds this limit, it will fail with an error indicating the limit was reached.

    // wrangler.jsonc
    {
    	"workflows": [
    		{
    			"binding": "MY_WORKFLOW",
    			"name": "my-workflow",
    			"class_name": "MyWorkflow",
    			"limits": {
    				"steps": 5000,
    			},
    		},
    	],
    }

    The steps value must be an integer between 1 and 25,000. If not specified, the default limit of 10,000 steps is used. Step limits are also enforced in local development via wrangler dev.

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.