gaujin/tornado-crontab

View on GitHub
examples/decorator_style_task_app.py

Summary

Maintainability
A
0 mins
Test Coverage
from __future__ import print_function
import tornado.ioloop
from tornado_crontab import crontab


@crontab("* * * * *")
def hello_crontab(value):

    print("Hello, {0}".format(value))


if __name__ == "__main__":

    hello_crontab("crontab")
    tornado.ioloop.IOLoop.current().start()