Commit Graph

13 Commits

Author SHA1 Message Date
24d507a48f feat(tasks): implement long-term delayed tasks with KV and Cron 2025-11-29 09:03:21 -05:00
bd958fb1ab feat: migrate to cloudflare d1 and queues 2025-11-28 16:32:35 +08:00
8175d73df1 refactor: ♻️emoves Env parameter
Removes the `Env` parameter from several functions to simplify their signatures and rely on the global `env` for configuration.

This change reduces the number of arguments passed around, making the code cleaner and easier to maintain.
2025-08-10 19:22:14 -04:00
da7c843e72 fix: task for anilist-updates not encoding body in base 64 2024-10-29 07:47:54 -04:00
2dcf8630ab fix: improve error logging
Cloudflare doesn't log causes, only the messages so splitting the logs in to 2
2024-10-27 08:49:31 -04:00
f8889eb550 fix: make sure to check body with hashed queue task name 2024-10-23 09:00:39 -04:00
1869771716 fix: if failed to validate body, trigger hashed task name flow 2024-10-22 08:20:03 +02:00
42c041a4e0 fix: hash task name when failing to queue new task
this should help with gcp cloud task deduplication causing 409 errors
2024-10-21 18:42:29 +08:00
7f8fd882aa fix: throws "failed to queue" error when task already exists 2024-10-16 08:17:59 +08:00
37cf7bd738 fix: cloud tasks not being queued and failing silently 2024-10-14 08:28:22 +08:00
8a20b72bcb fix: update queue name for anilist updates 2024-10-06 18:41:09 -04:00
5f978205c4 remove taskId from optional args of queueTask 2024-10-06 08:48:43 -04:00
44ffa703b9 refactor: replace qstash with Google Cloud Tasks 2024-10-05 14:06:57 -04:00