porridger/back/scheduler.py

14 lines
244 B
Python

from . import service
from rocketry import Rocketry
from rocketry.conds import daily
import datetime
app = Rocketry()
# Create some tasks:
@app.task("daily")
def daily_check():
service.check_obsolete(current_date=datetime.date.today())