MarkLogic Server 11.0 Product Documentation
trgr:trigger-set-task-priority

trgr:trigger-set-task-priority(
   $trigger-name as xs:string,
   $task-priority as xs:string
) as empty-sequence()

Summary

Sets the task priority setting of the identified trigger. The task priority is only applicable to post-commit triggers.

Parameters
trigger-name The current trigger name.
task-priority The new task priority value for the specified trigger. Either "normal" or "higher".

Usage Notes

If the named trigger does not exist, the exception TRGR-TRIGGERDNE is raised.

Example

xquery version "1.0-ml";
import module namespace trgr="http://marklogic.com/xdmp/triggers" 
   at "/MarkLogic/triggers.xqy";

trgr:trigger-set-task-priority("myTrigger", "higher")

  => Empty sequence. Sets the named trigger to have higher task priority.
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy