FastScheduler — это простой, лёгкий планировщик задач для Python с поддержкой async, учётом часовых поясов, cron‑выражениями и удобным дашбордом.
@scheduler.every(10).seconds, @scheduler.daily.at("09:00"), @scheduler.cron("*/15 * * * *") вешаются прямо на функции (sync или async). .timeout(30), ретраи .retries(5) с экспоненциальным backoff, отключение догоняющих запусков .no_catch_up(), pause/resume/cancel по ID или имени функции. базово:
pip install fastscheduler.с дашбордом:
pip install fastscheduler[fastapi]. с cron:
pip install fastscheduler[cron]. всё сразу:
pip install fastscheduler[all]. from fastscheduler import FastScheduler
scheduler = FastScheduler(quiet=True)
@scheduler.every(10).seconds
def task():
print("Task executed")
@scheduler.daily.at("14:30")
async def daily_task():
print("Daily task at 2:30 PM")
scheduler.start()
#FastScheduler #Python #Async #TaskScheduler #Cron #FastAPI #BackgroundJobs #DevTools #Monitoring #DeadLetterQueue
https://github.com/MichielMe/fastscheduler
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - MichielMe/fastscheduler: Decorator-first Python scheduler — cron/interval/at jobs with simple persistence and built-in…
Decorator-first Python scheduler — cron/interval/at jobs with simple persistence and built-in run history. - MichielMe/fastscheduler
1 2⚡1👍1
Oban — мощный фреймворк для оркестрации background jobs в Python на базе PostgreSQL. Надёжный, наблюдаемый, с enterprise‑фичами: async‑нативный, без лишних зависимостей, транзакционный контроль.
from oban import worker, Snooze, Cancel
@worker(queue="exports", max_attempts=5)
class ExportWorker:
async def process(self, job):
if job.cancelled(): return Cancel("cancelled")
report = await generate_report(job.args["report_id"])
if report.status == "pending": return Snooze(seconds=30)
await send_to_user(job.args["email"], report)
# Enqueue
await ExportWorker.enqueue({"report_id": 123, "email": "user@example.com"})
# CLI
oban install --dsn postgresql://localhost/mydb
oban start --dsn postgresql://localhost/mydb --queues exports:10
#Oban #JobQueue #PostgreSQL #AsyncPython #BackgroundJobs #Workflows #Python #OpenSource
https://github.com/oban-bg/oban-py
Please open Telegram to view this post
VIEW IN TELEGRAM
GitHub
GitHub - oban-bg/oban-py: 💎🐍 Robust job orchestration framework for Python, backed by modern PostgreSQL
💎🐍 Robust job orchestration framework for Python, backed by modern PostgreSQL - oban-bg/oban-py
1👍2🔥2 1