Loading TOC...


   $config as element(configuration),
   $group-id as xs:unsignedLong,
   $task-id as xs:unsignedLong
) as xs:boolean


This function returns true or false to indicate whether a scheduled task for a group is enabled.

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, the result of an admin:group-get-scheduled-task call.


xquery version "1.0-ml";

import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";

let $config := admin:get-configuration()
let $group-id := admin:get-group-id($config, "myGrouop")
let $task-id := admin:group-get-scheduled-task($config,
      admin:group-get-id($config,"Default"), ())
admin:group-scheduled-task-get-enabled($config, $grup-id, $task-id)

    (: returns the backup enabled setting for the group's scheduled task - true or false :)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.