afifurrohman-id / tempsy

Temporary Files sharing RESTful API
https://tempsy.afifurrohman.my.id
MIT License
0 stars 0 forks source link

suggestion: Background jobs #32

Open afifurrohman-id opened 11 months ago

afifurrohman-id commented 11 months ago

Description

Helpful for purge anonymous user and delete file

Strategy

Have a jobs run consistently each week (or some day) using Github Actions that purge expired file. If user didn't even hit, endpoint (so middleware for purging not trigger) this would be helpful.

harshRn commented 8 months ago

Hi @afifurrohman-id I think I can pick this up, although I don't understand why it has been marked as a bug.If I am missing something please do elaborate on the context, otherwise I will start reading, understanding and adding code. Thanks!

afifurrohman-id commented 8 months ago

Yeah because i just implement the middleware that it's bug when app is block during some request, also slow down response time.

I will also plan this to split up the repo btw, maybe bad for now, because is just small app it's super overkill haha, but i like to experiment.

I will create this using rust btw.