Fix logging when there are no jobs to start (#3971)

This commit is contained in:
Tadgh 2022-08-30 12:10:47 -07:00 committed by GitHub
parent 65d4fe81ad
commit 7d478f041e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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();