admin.groupGetScheduledTasks( config as element(configuration), group-id as (Number|String) ) as Sequence
This function returns all of the tasks scheduled for the specified group.
http://marklogic.com/xdmp/privileges/admin/group
http://marklogic.com/xdmp/privileges/admin/group/{id}
const admin = require('/MarkLogic/admin.xqy'); const config = admin.getConfiguration() admin.groupGetScheduledTasks(config, admin.groupGetId(config, "Default")) => <scheduledTask xmlns.xsi="http://www.w3.org/2001/XMLSchemaInstance" xmlns="http://marklogic.com/xdmp/group"> <taskPath>/Scheduler_test.xqy</taskPath> <taskRoot>/Docs</taskRoot> <taskType>minutely</taskType> <taskPeriod>15</taskPeriod> <taskDays> </taskDays> <taskTimestamp>20090227T12.16.06.15208.00</taskTimestamp> <taskDatabase>3439178527237237454</taskDatabase> <taskModules>0</taskModules> <taskUser>10677693687367813363</taskUser> </scheduledTask>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.