
admin:group-get-scheduled-tasks( $config as element(configuration), $group-id as xs:unsignedLong ) as element(gr:scheduled-task)*
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}
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";
  let $config := admin:get-configuration()
  return
    admin:group-get-scheduled-tasks($config,
      admin:group-get-id($config, "Default"))
   =>
  <scheduled-task xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://marklogic.com/xdmp/group">
    <task-path>/Scheduler_test.xqy</task-path>
    <task-root>/Docs</task-root>
    <task-type>minutely</task-type>
    <task-period>15</task-period>
	<task-days>
    </task-days>
    <task-timestamp>2009-02-27T12:16:06.152-08:00</task-timestamp>
    <task-database>3439178527237237454</task-database>
    <task-modules>0</task-modules>
    <task-user>10677693687367813363</task-user>
  </scheduled-task>
   
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.