Loading TOC...

MarkLogic Server 11.0 Product Documentation
trgr.triggerSetTaskPriority

trgr.triggerSetTaskPriority(
   trigger-name as String,
   task-priority as String
) as null

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

declareUpdate();
const trgr = require('/MarkLogic/triggers');

trgr.triggerSetTaskPriority('myTrigger', 'higher');

// Empty sequence. Sets the named trigger to have higher task priority.
   

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