Skip to content

Commit

Permalink
Merge pull request #191 from ymaheshwari1/#85zrnwg91
Browse files Browse the repository at this point in the history
Fixed: jobs schedule and update not working after reordering jobs(#85zrnwg91)
  • Loading branch information
adityasharma7 authored Feb 22, 2023
2 parents 6ae9c3b + fce4c32 commit 535cc7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/ScheduleThreshold.vue
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export default defineComponent({
this.successJobs = []
const solrQuery = this.query
const jobRunTime = this.updatedJobsOrder.find((job: any) => !job.jobId)?.runTime
const jobRunTime = this.jobsForReorder.find((job: any) => !job.jobId)?.runTime
let diffSeq = this.findJobDiff(this.initialJobsOrder, this.jobsForReorder)
this.updatedJobsOrder = Object.keys(diffSeq).map((key) => diffSeq[key])
Expand Down Expand Up @@ -452,7 +452,7 @@ export default defineComponent({
payload['SERVICE_RUN_AS_SYSTEM'] = 'Y';
payload['jobFields'].runAsUser = 'system';// default system, but empty in run now. TODO Need to remove this as we are using SERVICE_RUN_AS_SYSTEM, currently kept it for backward compatibility
payload['includeAll'] = false;
this.job.runTime && (payload['SERVICE_TIME'] = runTime.toString())
payload['SERVICE_TIME'] = runTime.toString()
// Scheduling Job that will run everyday and as system
scheduleJobRequests.push(JobService.scheduleJob({ ...this.job.runtimeData, ...payload }).catch(error => { return error }))
Expand Down

0 comments on commit 535cc7d

Please sign in to comment.