c# - Quartz.net How to set MisfireInstruction on trigger -
in quartz 1.0.x possible set misfireinstruction on trigger setting it:
trigger.misfireinstruction = misfireinstruction.crontrigger.donothing;
we upgraded quartz version 2.3.2 , it's not possible set anymore because trigger.misfireinstruction
has no setter anymore.
how possible set misfireinstruction on trigger now?
i tried recreate trigger triggerbuilder this:
trigger = trigger.gettriggerbuilder()...
but couldn't find misfireinstruction-method on triggerbuilder too.
thanks help
this behaviour has changed version 2, guess.
misfireinstruction
read-only property , set using builder can see in codebase.
now can set the misfireinstruction
using triggerbuilder
:
itrigger mytrigger = triggerbuilder .create() .withidentity("trigger1", "mygroup") .withcronschedule("0 0 12 1/5 * ? *", x => x.withmisfirehandlinginstructiondonothing()) .build();
you can use few options:
you can use these options:
- withmisfirehandlinginstructiondonothing
- withmisfirehandlinginstructionfireandproceed
- withmisfirehandlinginstructionignoremisfires
a article explanation can found here.
Comments
Post a Comment