Skip to content

0.2.9

Compare
Choose a tag to compare
@Nanguage Nanguage released this 03 Jan 06:49
· 2 commits to master since this release

Support cron job.

Example:

import asyncio

from executor.engine import Engine
from executor.engine.job.extend.cron import CronJob, every

engine = Engine()


async def main():
    def do_something():
        print("hello")

    job = CronJob(do_something, every("1s"))
    await engine.submit_async(job)
    await engine.wait_async()


asyncio.run(main())

Full Changelog: 0.2.8...0.2.9