fix workflow deployment
Deploy to Cloudflare Pages / deploy (push) Failing after 1m24s

This commit is contained in:
2026-08-24 05:32:51 +00:00 Unverified
parent e9d3c2a0c4
commit 03be5876e0
3 changed files with 14 additions and 4 deletions
+4
View File
@@ -7,6 +7,7 @@ import {
type Env = {
GUIDE_JOB_URL: string;
GUIDE_JOB_SECRET: string;
RECOMMENDATION_WORKFLOW: Workflow;
};
export class RecommendationWorkflow extends WorkflowEntrypoint<Env> {
@@ -35,4 +36,7 @@ export default {
fetch() {
return Response.json({ service: "hotfridge-recommendation-workflow" });
},
async scheduled(_controller: ScheduledController, env: Env, ctx: ExecutionContext) {
ctx.waitUntil(env.RECOMMENDATION_WORKFLOW.create({ params: {} }));
},
};