
admin.groupMonthlyScheduledTask( task-path as String, task-root as String, task-period as Number, task-month-day as (Number|String), task-start-time as (Number|String), task-database as (Number|String), task-modules as (Number|String), task-user as (Number|String), task-host as (Number|String)?, [task-priority as String?] ) as element(gr.scheduledTask)
This function constructs a task to be invoked at monthly intervals. 
      You can call admin.groupAddScheduledTask to add the task.
  
  
  const admin = require('/MarkLogic/admin.xqy');
  const config = admin.getConfiguration()
     admin.groupMonthlyScheduledTask(
        "/Scheduler_test.xqy",
        "/Docs",
	2,
	3,
	xs.time("14:42:52"),
        xdmp.database("Documents"),
        0,
        xdmp.user("Jim"),
	0,
        "normal")
      //returns a monthly scheduled task. 
   
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.