what methods are there for a CronTrigger to modify its CronExpression? I’ve tried to set it in the CronExpressionString but that doesn’t seem to update it, and I can’t convert my string to a CronExpression to use in the CronExpression method.
what methods are there for a CronTrigger to modify its CronExpression? I’ve tried to
Share
There really is no way to modify a trigger’s cron expression through the API. The “normal” way to do what you want is to create a new trigger with the new cron expression and then either reschedule the job with the new trigger or delete and create the job with the new trigger.
If you’re using a database as your job store, the cron expression is stored in the CRON_EXPRESSION column of the QRTZ_CRON_TRIGGERS table. Changing it directly in the database is probably not the best option but you could give it a try and see what happens.