From 90d0e49c30ae9da267e5c448d4943cb5694c99bc Mon Sep 17 00:00:00 2001 From: Luke Sikina Date: Fri, 10 Nov 2023 10:38:30 -0500 Subject: [PATCH] fix --- .../hpds/service/filesharing/FileSharingService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/filesharing/FileSharingService.java b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/filesharing/FileSharingService.java index 1f99c47c..1e0badb7 100644 --- a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/filesharing/FileSharingService.java +++ b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/filesharing/FileSharingService.java @@ -51,11 +51,11 @@ public boolean createGenomicData(Query phenotypicQuery) { AsyncResult status = null; while ( status == null || // wait for the genomic query to complete - status.status.equals(AsyncResult.Status.PENDING) || - status.status.equals(AsyncResult.Status.RUNNING) + status.status == AsyncResult.Status.PENDING || + status.status == AsyncResult.Status.RUNNING ) { try { - Thread.sleep(Duration.of(30, ChronoUnit.SECONDS)); + Thread.sleep(30000); } catch (InterruptedException e) { LOG.error("Error waiting for status: ", e); }