{"id":526,"date":"2026-06-02T15:00:00","date_gmt":"2026-06-02T15:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/06\/02\/workflows-workers-schedule-workflow-instances-directly-from-your-workflow-binding\/"},"modified":"2026-06-02T15:00:00","modified_gmt":"2026-06-02T15:00:00","slug":"workflows-workers-schedule-workflow-instances-directly-from-your-workflow-binding","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/06\/02\/workflows-workers-schedule-workflow-instances-directly-from-your-workflow-binding\/","title":{"rendered":"Workflows, Workers &#8211; Schedule Workflow instances directly from your Workflow binding"},"content":{"rendered":"<p>You can now attach cron schedules directly to a Workflow binding in <code>wrangler.jsonc<\/code>. Each scheduled run creates a new Workflow instance automatically, so you do not need to define a separate Worker with a <code>scheduled<\/code> handler just to trigger your Workflow on an interval.<\/p>\n<p>For example, you can configure hourly, every-15-minute, or weekday schedules on the same Workflow:<\/p>\n<div>\n<figure>\n<pre data-language=\"jsonc\"><code class=\"language-jsonc\"><div><div><span>{<\/span><\/div><\/div><div><div><span>  <\/span><span>\"<\/span><span>workflows<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>[<\/span><\/div><\/div><div><div><span>    <\/span><span>{<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>name<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"my-scheduled-workflow\"<\/span><span>,<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>binding<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"MY_WORKFLOW\"<\/span><span>,<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>class_name<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"MyScheduledWorkflow\"<\/span><span>,<\/span><\/div><\/div><div><div><span>      <\/span><span>\"<\/span><span>schedules<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>[<\/span><span>\"0 * * * *\"<\/span><span>,<\/span><span> <\/span><span>\"*\/15 * * * *\"<\/span><span>,<\/span><span> <\/span><span>\"0 9 * * MON-FRI\"<\/span><span>]<\/span><\/div><\/div><div><div><span>    <\/span><span>}<\/span><\/div><\/div><div><div><span>  <\/span><span>]<\/span><\/div><\/div><div><div><span>}<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<div><\/div>\n<\/figure>\n<\/div>\n<p>This makes it easier to build recurring jobs such as database backups, invoice generation, report aggregation, and cleanup tasks without wiring up a separate Cron Trigger entrypoint.<\/p>\n<p>For more information, refer to <a href=\"https:\/\/developers.cloudflare.com\/workflows\/build\/trigger-workflows\/\">Trigger Workflows<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>You can now attach cron schedules directly to a Workflow binding in wrangler.jsonc. Each scheduled run creates a new Workflow instance automatically, so you do not need to define a separate Worker with a scheduled handler just to trigger your Workflow on an interval. For example, you can configure hourly, every-15-minute, or weekday schedules on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-526","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=526"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/526\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}