Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.groupGetScheduledTasks

admin.groupGetScheduledTasks(
   config as element(configuration),
   group-id as (Number|String)
) as Sequence

Summary

This function returns all of the tasks scheduled for the specified group.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
group-id The ID of the group on which the scheduled tasks are configured. Typically, this is the result of an admin:group-get-id call.

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

  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
    admin.groupGetScheduledTasks(config,
      admin.groupGetId(config, "Default"))
   =>

  <scheduledTask xmlns.xsi="http://www.w3.org/2001/XMLSchemaInstance"
xmlns="http://marklogic.com/xdmp/group">
    <taskPath>/Scheduler_test.xqy</taskPath>
    <taskRoot>/Docs</taskRoot>
    <taskType>minutely</taskType>
    <taskPeriod>15</taskPeriod>
	<taskDays>
    </taskDays>
    <taskTimestamp>20090227T12.16.06.15208.00</taskTimestamp>
    <taskDatabase>3439178527237237454</taskDatabase>
    <taskModules>0</taskModules>
    <taskUser>10677693687367813363</taskUser>
  </scheduledTask>
   

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