fastapi-utils
fastapi-utils copied to clipboard
Add a decorator like @repeat_at?
Hi! I find myself wanting a decorator like @repeat_at(cron="0 0 13 * * *") to run the task at 1 pm every day, if I where to implement something like that would you consider merging it to this repo?
probably using croniter for the parsing and just getting the numbers of seconds to sleep and just using the same logic as repeat_every
@triptec excellent point! Do you mind to implement in a schedule every().[dayOfWeek].at(hour) like?
I wouldn’t know how to do that I’m afraid. What’s the upside of doing it that way?
hi @triptec 👋
Liked your idea, this was really helpful decorator for us & decided to contribute for project.
:+1: