Python任务调度工具 py-task

码农软件 · 软件分类 · 作业/任务调度 · 2019-09-04 15:28:45

软件介绍

py-task是一个Python下的任务调度工具

  • 支持简单的周期性调度

  • 支持Cron格式的任务调度

安装方法

python setup.py install

或者

pip install py-task

示例代码:

from task import task
from task import task_container
from task.job import job
from task.trigger import cron_trigger

class MyJob(job.Job):

    def __init__(self):
        pass

    def execute(self):
        print 'Hello now is ' + str(time.time())

cron = '0-59/5 10,15,20 * * * * 2015'
new_task = task.Task('Task', MyJob(), cron_trigger.CronTrigger(cron))
container.add_task(new_task)
container.start_all()

本文地址:https://www.codercto.com/soft/d/13866.html

Dynamic Programming

Dynamic Programming

Richard Bellman / Dover Publications / 2003-03-04 / USD 19.95

An introduction to the mathematical theory of multistage decision processes, this text takes a "functional equation" approach to the discovery of optimum policies. The text examines existence and uniq......一起来看看 《Dynamic Programming》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具