To unschedule a job:
- In the KFS user interface, choose Administration -> Batch -> Schedule.
- Search for the job you want to unschedule.
- Go into the spring file associated with the namespace for the job (listed in the search results).
- Search for lockboxJob.
Under the jobNames property, you'll see several jobs listed. Just below the jobNames property is the triggerNames property that is used to schedule the job to run. Further down in the file is the lockboxJobTrigger with a cron expression indicating when the job is to run.
- To change when the job runs, change the cronExpression property.
Below the lockboxJobTrigger property is a lockboxJob bean with a parent of scheduledJobDescriptor.
- Change the parent to unscheduledJobDescriptor and comment out the triggerNames values.
Note: Be sure to comment out the invoiceRecurrenceJobTrigger too because this trigger also refers to the lockboxJob further down in the spring file. You should also set the parent to unscheduledJobDescriptor for all of the jobs under the jobNames property. Otherwise the jobs will still show up as scheduled with a Pending Job Status but without a next Run Time.
- Rebuild and deploy.
The scheduled job that was showing up before will not show up in the list of jobs.
Allan Sonkin
Java Support Engineer II
rSmart
Mr. Sonkin, thank you for
Mr. Sonkin,
thank you for this short tutorial. I appreciate it very much as it helped me at time most important.
With regards
Andrej
how to ejaculate more volume
Post new comment