Version 3 (modified by Richard Liao, 15 years ago) (diff)


Scheduled tasks manager

SEE:ZoomQuiet ~ Collection KSPEG Trac hacking


This plugin provides an extension point for trac plugin developers to manager their scheduled taskes. It polls register plugins, and run matched tasks like crontab in linux/unix.

Features will be added to this plugin in next version:

  • support crontab format

Bugs/Feature Requests

Existing bugs and feature requests for TracSchedulerPlugin are here.

If you have any issues, create a new ticket.


Download the zipped source from [download:tracschedulerplugin here].


You can check out TracSchedulerPlugin from here using Subversion, or browse the source with Trac.


You can install this software as normal Trac plugin.

  1. Uninstall Trac Scheduler if you have installed before.
  1. Change to the directory containning
  1. If you want to install this plugin globally, that will install this plugin to the python path:
    • python install
  1. If you want to install this plugin to trac instance only:
    • python bdist_egg
    • copy the generated egg file to the trac instance's plugin directory
      cp dist/*.egg /srv/trac/env/plugins
  1. Config trac.ini:
    tracscheduler.* = enabled
    ; tasks poll interval is 60 sec
    poll_interval = 60
    ; task invoke interval is 1 sec
    worker_interval = 1


This following plugin will logging the latest 2 ticket ids every 1 minute.

from tracscheduler.web_ui import IScheduledTask

class TracSchedulerTest(Component):
    def process_scheduled_task(self, parent):
        sqlString = "SELECT id FROM ticket ORDER BY id DESC LIMIT 2;"
        rows = parent.queryDb(sqlString)

Recent Changes

6398 by richard on 2009-08-20 00:52:39
#5685 remove admin panel
6334 by richard on 2009-08-07 03:08:42
remove license.txt
4607 by richard on 2008-10-28 06:59:08
remove hardcoded poll_interval value


Author: richard