ztk/zopeapp的ztfy调度程序包

ztfy.scheduler的Python项目详细描述


What is ztfy.scheduler ?

scheduler是那些需要构建可在内部运行的计划任务的基础包 基于ztk/zopeapp的环境(需要zeo!)。这些任务可以安排:

  • on a cron-style base,
  • at a given date/time (like the “at” command)
  • or at a given interval.

调度是通过apscheduler(http://packages.python.org/APScheduler/)包完成的,并且 因此,所有这些类型的任务都可以使用相同的设置进行调度。但是任务管理 通过一个简单的web界面生成,运行历史记录的任务存储在zodb中。

在应用程序启动时,调度程序在专用的zeromq进程中运行,该进程还用于 处理任务设置和计划程序作业之间的同步。

任务日志可以在zodb中存储可变的持续时间(基于多次迭代)。 这些日志报告也可以通过邮件、每次运行或仅在检测到错误时发送。

How to use ztfy.scheduler ?

ztfy/scheduler/doctests/readme.txt中给出了一组ztfy.scheduler用法作为doctests

Changelog

0.5.2

  • allow multiple recipients of task execution report

0.5.1

  • removed condition on debug mode run button

0.5.0

  • added task execution menu to run in debug mode without using ZMQ process

0.4.9

  • updated french translation

0.4.8

  • added tasks attributes relatives to empty reports handling

0.4.7

  • use “tztime” function in history sorting

0.4.6

  • added one second before checking ZMQ processes startup

0.4.5

  • remove ZTFY.security resources dependencies

0.4.4

  • convert roles edit forms to dialogs

0.4.3

  • register ZMQ scheduler process exit callback function

0.4.2

  • added system command execution task (local, or remote throught SSH)
  • added option to execute a task immediately on user’s request

0.4.1

  • removed title from jobs list template

0.4.0

  • complete package refactoring, with tasks and scheduler jobs synchronization based on a dedicated ZeroMQ process

0.3.4

  • changed package source layout

0.3.3

  • implement ztfy.security ILocalRoleManager interface

0.3.2

  • start and stop scheduler when scheduler utility is registered or unregistered, instead of when it’s added or removed
  • remove scheduler from schedulers handler when scheduler is stopped

0.3.1

  • update ShelveJobStore to take care of specific file systems configurations, because sometimes shelve modification time is not updated when “sync()” is called. From now on jobs configuration timestamp is stored in shelve and a blocking file lock is used to prevent concurrent modifications in it. At least it seems to work on Linux, any feedback concerning other OS is still welcome…

0.3.0

  • refactoring to follow last releases of ztfy.skin and ztfy.jqueryui packages
  • redefined interfaces so that tasks scheduling mode (cron-style, interval-style…) can be defined on a per-task basis and is not bound to the task class; new scheduling modes can also be added via registered utilities
  • store tasks execution log in tasks history
  • add an “URL getter” task, which can be used to call a remote “management” URL on periodic basis
  • add username/password/realm to ZEO connections
  • modify ZODB packer task to be able to pack another remote database instead of only those to which scheduler is defined
  • improved handling of transactions and conflict errors

0.2.2

  • changed ISite package import

0.2.1

  • updated database automatic upgrade code

0.2

  • migrated to ZTK-1.1
  • integrated ZODBPackerTask (moved from ztfy.blog package)

0.1

  • initial release

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java爬虫获取外部网站搜索结果   java Bluestack未连接到eclipse   java如何从ConstraintViolationException Hibernamte获取数据库字段名   HttpResponse HttpResponse=httpClient引发java运行时错误。执行(httpPost);   Jama中矩阵的java点积和叉积   java有什么方法可以唯一地识别可扩展设备吗?   java我需要用*来写我的名字,但我不断遇到一个错误,我对编码很陌生   java变量是在内部类中访问的。需要被宣布为最终决定。但我不想宣布最终结果   java如何缩短base64图像字符串,Android?   JavaSpringMVC:计划方法不自动触发   图形学习Java 2D API的好资源是什么?   如何在java中对方法进行排队   java JavaFX多行   java Selenium无法在[链接]上找到基于CSS元素的密码字段元素http://www.cartasi.it/gtwpages/index.jsp   Java中的equals()和hashCode()契约   软删除情况下的java Hibernate二级缓存   java为什么这段代码要两次调用这些方法?