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'); const config = admin.getConfiguration() const groupId = admin.getGroupId(config, "myGrouop") const 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