Recurring Jobs
You can schedule recurring jobs with funcrunner 1.1.5 or later. Using standard cron expressions, you can decorate a function to be executed on a schedule.
# main.py
from dotenv import load_dotenv
from funcrunner.app import FuncRunnerApp
load_dotenv()
app = FuncRunnerApp()
@app.schedule("0/15 * * * *")
def log_message():
""" this function is executed every 15 minutes """
print("Hello, world!")
app.run()
Last modified: 17 December 2024