Understanding Scheduled Tasks
MarkLogic Server allows you to schedule the execution of XQuery main modules. The ability to schedule module execution is useful for
Loading content. For example, periodically checking for new content from an external data source, such as a web site, web service, etc.
Synchronizing content. For example, when MarkLogic is used as a metadata repository, you might want to periodically check for changed data.
Delivering batches of content: For example, initiate an RSS feed, hourly or daily.
Delivering aggregated alerts, either hourly or daily.
Delivering reports, either daily, weekly, or monthly.
Polling for the completion of an asynchronous process, such as the creation of a PDF file.
Tasks can be scheduled to run at a particular time on a particular date, or at a specified interval. MarkLogic Server attempts to place the task on the task server's queue at the specified time, but the actual execution of the task might not start at this time. If the queue is full, the task fails and will not be re-tried until the next scheduled interval.