logoalt Hacker News

Show HN: FastScheduler – Decorator-first Python task scheduler, async support

32 pointsby michielmetoday at 2:45 PM6 commentsview on HN

Hi! I've built this because I kept reaching for Celery for simple scheduled tasks and it felt like overkill. I just needed "run this function every hour" or "daily at 9am", not distributed workers.

So it's decorators for scheduling (@scheduler.every(5).minutes, @scheduler.daily.at("09:00")), state saves to JSON so jobs survive restarts, and there's an optional FastAPI dashboard if you want to see what's running.

No Redis, no message broker, runs in-process with your app. Trade-off is it's single process only — if you need distributed workers, stick with Celery.


Comments

antonbassyktoday at 7:13 PM

Looks interesting. Wondering how this is different from the more established https://github.com/agronholm/apscheduler ?

show 1 reply
techjamietoday at 6:20 PM

This is really cool, and I could see myself using this. Sometimes I need functionality like this, but can't be bothered to build up the infrastructure around it. This is perfect for that use case.

show 1 reply
fucalosttoday at 6:18 PM

This looks great OP. Do you have anything on the roadmap that you’d be open to receiving PRs for? I noticed there weren’t any issues in the repo and would be keen to lend a hand!

show 1 reply