Database Reference
In-Depth Information
scheduler
Description
Scheduling jobs
Namespace
scheduler="http://exist-db.org/xquery/scheduler"
Type/default status
Java; enabled in $EXIST_HOME/conf.xml ; enabled in $EXIST_HOME/extensions/
build.properties
Class
org.exist.xquery.modules.scheduler.SchedulerModule
The scheduler module allows you to run a job (for instance, an XQuery script) at
regular intervals. For instance, starting a script that will run five times at a 10-second
interval is done with this call (for details, please refer to the module documentation):
scheduler:schedule-xquery-periodic-job ( '/path/to/your/script.xq' , 10000 ,
'JobName' , (), 0 , 5 )
Jobs can be stopped, paused, and examined. Calling scheduler:get-scheduled-jobs
may surprise you by showing that there are quite a few system jobs running that you
weren't aware of.
Jobs scheduled with the scheduler module are not persisted across
restarts of the database. If you wish to create persistent scheduled
jobs, you need to add them to the scheduler configuration section
of $EXIST_HOME/conf.xml as well.
If your job doesn't seem to run or does not behave as you expect,
consult the $EXIST_HOME/webapp/WEB-INF/logs/exist.log file.
For more information on eXist's scheduler, see “Scheduled Jobs”
on page 435 .
sequences
Description
Working with sequences
Namespace
sequences="http://exist-db.org/xquery/sequences"
 
Search WWH ::




Custom Search