admin.groupScheduledTaskGetEnabled( config as element(configuration), group-id as (Number|String), task-id as (Number|String) ) as Boolean
This function returns true or false to indicate whether a scheduled task for a group is enabled.
const admin = require('/MarkLogic/admin.xqy'); var config = admin.getConfiguration() var groupId = admin.getGroupId(config, "myGrouop") var taskId = admin.groupGetScheduledTask(config, admin.groupGetId(config,"Default"), null) admin.groupScheduledTaskGetEnabled(config, grupId, taskId) //returns the backup enabled setting for the group's scheduled task - true or false