chassis/timer_demo/timer.py

13 lines
184 B
Python
Raw Normal View History

2023-05-24 00:39:41 +08:00
from rocketry import Rocketry
from rocketry.conds import daily
app = Rocketry()
@app.task(daily)
def do_daily():
print('日常任务')
if __name__ == '__main__':
app.run()