This commit is contained in:
@@ -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: {} }));
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user