Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
[BZ 1463351] Replace statusCheckJob name to randomUUID(), which shoul…
Browse files Browse the repository at this point in the history
…d be random as long as there is enough entropy in the system
  • Loading branch information
Michael Burman authored and spinder committed Aug 24, 2017
1 parent a9b0313 commit 3ae5682
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -19,6 +19,8 @@

package org.rhq.enterprise.server.scheduler.jobs;

import java.util.UUID;

import org.quartz.Job;
import org.quartz.JobDataMap;
import org.quartz.JobDetail;
Expand Down Expand Up @@ -91,7 +93,7 @@ public void execute(JobExecutionContext context) throws JobExecutionException {
try {
Trigger trigger = QuartzUtil.getFireOnceOffsetTrigger(jobDetail, 10000L);
// just need a trigger name unique for this job
trigger.setName(String.valueOf(System.currentTimeMillis()));
trigger.setName(UUID.randomUUID().toString());
scheduler.scheduleJob(trigger);
} catch (SchedulerException e) {
throw new JobExecutionException(
Expand Down

0 comments on commit 3ae5682

Please sign in to comment.