feat(tasks): implement long-term delayed tasks with KV and Cron

This commit is contained in:
2025-11-29 09:03:21 -05:00
parent 40fa0080b5
commit 24d507a48f
8 changed files with 769 additions and 0 deletions

View File

@@ -88,6 +88,12 @@ export default {
break;
}
},
async scheduled(event, env, ctx) {
const { processDelayedTasks } = await import(
"~/libs/tasks/processDelayedTasks"
);
await processDelayedTasks(env, ctx);
},
} satisfies ExportedHandler<Env>;
export { AnilistDurableObject as AnilistDo } from "~/libs/anilist/anilist-do.ts";