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

@@ -45,6 +45,14 @@ queue = "anilist-updates"
[[queues.consumers]]
queue = "new-episode"
[[kv_namespaces]]
binding = "DELAYED_TASKS"
id = "c8db249d8ee7462b91f9c374321776e4"
preview_id = "ff38240eb2aa4b1388c705f4974f5aec"
[triggers]
crons = ["0 */12 * * *"]
[[d1_databases]]
binding = "DB"
database_name = "aniplay"