作业调度程序的python接口。
redisjobs的Python项目详细描述
这是一个python客户端库,用于与 Jobs调度程序。
使用pip安装:
pip install redisjobs
importredisjobsasjobs# if Redis is not running on your local machine,# specify Redis host and port, otherwise you# can initialize the object without argumentsboard=jobs.Board(host='127.0.0.1',port=6379)schedule={'minutes':5}board.put('my job','shell','echo "Hello world!"',schedule)printboard.get('my job')
有关详细信息,请查看jobs/__init__.py。