admin:group-get-scheduled-task

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

Summary

This function returns information about a scheduled task for a group based on the task ID and the group ID.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-id The ID of the group to which the App Server belongs. Typically, this is the result of an admin:group-get-id call.
task-id The ID of the task.

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-task($config,
      (admin:group-get-id($config,"Default")),17507568446985964051)

 =>
 element
<scheduled-task xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://marklogic.com/xdmp/group">
 <task-id>17507568446985964051</task-id>
 <task-enabled>true</task-enabled>
 <task-path>/MarkLogic/flexrep/tasks/push-local-forests.xqy</task-path>
 <task-root>Modules</task-root>
 <task-type>minutely</task-type>
 <task-period>1</task-period>
<task-days></task-days>
 <task-timestamp>2014-11-10T11:00:44.109-08:00</task-timestamp>
 <task-database>8250162625324183727</task-database>
 <task-modules>0</task-modules>
 <task-user>12367085613665751917</task-user>
 <task-host>0</task-host>
 <task-priority>normal</task-priority>
</scheduled-task>

 (: returns information about this task :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy