MarkLogic 12 EA 1 Product Documentation
admin:group-get-scheduled-tasks

admin:group-get-scheduled-tasks(
   $config as element(configuration),
   $group-id as xs:unsignedLong
) as element(gr:scheduled-task)*

Summary

This function returns all of the tasks scheduled for the specified group.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-id The ID of the group on which the scheduled tasks are configured. Typically, this is the result of an admin:group-get-id call.

Required Privileges

This operation requires at least one of the following privileges:

http://marklogic.com/xdmp/privileges/admin/group

http://marklogic.com/xdmp/privileges/admin/group/{id}

Example


  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>
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy