|Version 1 (modified by tbressure, 5 years ago) (diff)|
Trac Cron Plugin
This plugin add a scheduler inside Trac process that can handle any sort of task writing in python language. The plugin provide and administration panel to help scheduling.
If you have any issues, create a new ticket.
Download the zipped source from here.
My company need to synchronize trac user with an external source of account. The job was made by an ETL but fine tuning of trac user was still done by a our modidied version of Trac by clicking on a button on the admin panel that call a well designed API. So instead of manually clik on the button i searched a way to automate it. Unfortunately, i did not find any plugin for this and even if i could use a unix cron task or an windows AT command to plane the task, i thought it would be better done inside Trac process.
So if you have any function for entry point of a process (i mean trac related process) and you want to plane it as a job, Trac Cron Plugin is for you.
Simply create in a module (.py) a class that implement the ICronTask and put it inside plugins directory. Then you can either trick the trac.ini but comfortably use the dedicated admin panel.