How to set a cron expression of cron job from controller in Grails -
i want cron expression user through .gsp , want set new cron expression of dynamic job controller. intially cron expression "0 1 0 * * ?" want change to.. say
string cronexpression="0 2 0 * * ?" // in controller // creates cron trigger; dynamicjob.schedule(string cronexpression, map params?)
but doesn't work.
something maybe:
trigger.cronexpression = params.cronexpression quartzscheduler.reschedulejob(new triggerkey(params.triggername, params.triggergroup), trigger)
for more context see this controller in quartz monitor plugin or use plugin itself.
Comments
Post a Comment