Skip to content

Conversation

@shahriaarrr
Copy link
Contributor

fixed #11 :

  • Added a cleanup_old_quizzes method to delete expired quizzes from the KV store.
  • Introduced start_cleanup_task to run periodic cleanup tasks in the background.
  • Configured quiz expiration to be managed independently and seamlessly.

@shahriaarrr
Copy link
Contributor Author

@amiremohamadi

@shahriaarrr
Copy link
Contributor Author

now i should think about it :**)

@amiremohamadi
Copy link
Member

amiremohamadi commented Dec 20, 2024

cf workers resources are limited so we can't rely on common approaches like spawning threads and sleeping. i recommend not to use ai for this issue as it might confuse you a little.

@amiremohamadi
Copy link
Member

these are the potential approaches we can try:

  • check if there's a way to pass callbacks to kv expired entries
  • using cf queues and deliveryDelay (not sure, probably only available on paid plans)
  • using cf cron triggers

@amiremohamadi
Copy link
Member

i'm closing this as it's fixed in #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

remove join request quizes after a fixed period of time

2 participants