admin:group-scheduled-task-get-enabled( $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.
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"), ()) return 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 :)