python from huey import RedisHuey, crontab huey = RedisHuey() @huey.task() def say_hello(name): print(f'Hello, {name}!') say_hello.delay('Alice') @huey.periodic_task(crontab(minute='*/5')) def do_something(): print('Doing something...') if __name__ == '__main__': huey.run()


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