
admin.groupMinutelyScheduledTask( task-path as String, task-root as String, task-period as Number, task-database as (Number|String), task-modules as (Number|String), task-user as (Number|String), task-host as (Number|String)?, [task-priority as String?] ) as element(gr.scheduledTask)
This function constructs a task to be invoked at intervals defined in terms of minutes.
You can call admin.groupAddScheduledTask to add the task.
const admin = require('/MarkLogic/admin.xqy');
const config = admin.getConfiguration()
admin.groupMinutelyScheduledTask(
"/Scheduler_test.xqy",
"/Docs",
45,
xdmp.database("Documents"),
0,
xdmp.user("Jim"),
0,
"normal")
//returns a minutely scheduled task.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.