Fix logging when there are no jobs to start (#3971)
This commit is contained in:
parent
65d4fe81ad
commit
7d478f041e
|
@ -40,6 +40,7 @@ import ca.uhn.fhir.jpa.model.sched.ISchedulerService;
|
|||
import ca.uhn.fhir.jpa.model.sched.ScheduledJobDefinition;
|
||||
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
|
||||
import ca.uhn.fhir.util.ValidateUtil;
|
||||
import com.apicatalog.jsonld.StringUtils;
|
||||
import org.apache.commons.lang3.time.DateUtils;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -169,7 +170,9 @@ public class BulkDataImportSvcImpl implements IBulkDataImportSvc {
|
|||
|
||||
try {
|
||||
ActivateJobResult retval = doActivateNextReadyJob();
|
||||
ourLog.info("Batch job submitted with batch job id {}", retval.jobId);
|
||||
if (!StringUtils.isBlank(retval.jobId)) {
|
||||
ourLog.info("Batch job submitted with batch job id {}", retval.jobId);
|
||||
}
|
||||
return retval;
|
||||
} finally {
|
||||
myRunningJobSemaphore.release();
|
||||
|
|
Loading…
Reference in New Issue