pip install gunnery python import gunnery @gunnery.task(name="hello") def hello_world(): print("Hello, World!") python @gunnery.schedule(name="hello_schedule", cron="*/2 * * * *") def hello_schedule(): gunnery.run_task("hello") python if __name__ == "__main__": gunnery.run() python example.py


上一篇:
下一篇:
切换中文