trgr:trigger-set-task-priority( $trigger-name as xs:string, $task-priority as xs:string ) as empty-sequence()
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". |
If the named trigger does not exist, the exception
TRGR-TRIGGERDNE
is raised.
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.