17.0 Object triggers > References > Scheduler triggers

Conventions

17.14 Scheduler triggers

Triggers attached to the scheduler follow the same basic rules and formats as attaching them to other objects; however, not all attribute options are valid for each object. The scheduler, like the other objects, has a unique set of trigger rules. The table below details the methods, options, and other notable details associated with attaching triggers to the scheduler.

Creation methods

Method Format Example
Command line on existing scheduler: mschedctl - c mschedctl -c trigger <trigSpec> -o sched:<schedID>

> mschedctl -c trigger EType=end,AType=exec,Action="/tmp/startRsvs.sh" -o sched:moab

Scheduler configuration in moab.cfgSCHEDCFG SCHEDCFG[<name>] TRIGGER=<trigSpec>

SCHEDCFG[MyCluster] TRIGGER=EType=fail,AType=mail,Action="scheduler failure detected on $TIME",RearmTime=15:00

Valid event types

Valid action types

Mail recipient

The user listed first in ADMINCFG (usually root)

See Using a trigger to send email for more information.