-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Goal
Execute scheduled functions
Discussion
- Do we want this? With systems like appscheduler or kubernetes cron jobs
- Maybe we can defer the discussion for later
Ideas
1. Decorator
from dam import send, timer
@timer(ms=20)
async def hello():
send("a-topic", {"name": "jon"}2. Add them in a list
This would follow a similar approach to routes
from dam import Timer, App
from .myapp import hello
timers = [
Timer(hello, ms=20)
]
App(timers=timers)marcosschroh