trgr.triggerSetTaskPriority( trigger-name as String, task-priority as String ) as null
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.
declareUpdate(); const trgr = require('/MarkLogic/triggers'); trgr.triggerSetTaskPriority('myTrigger', 'higher'); // Empty sequence. Sets the named trigger to have higher task priority.