Skip to content
Permalink
Browse files
BATCHEE-84 check batchStatus after sleep
  • Loading branch information
rsandtner committed Dec 7, 2015
1 parent f8d68fe commit 422c2b7530095ffe3dc7ec2758815ba905c53992
Showing 1 changed file with 2 additions and 3 deletions.
@@ -45,12 +45,11 @@ public static BatchStatus waitForEnd(final JobOperator jobOperator, final long i

// else polling
do {
batchStatus = getBatchStatus(jobOperator, id);

try {
Thread.sleep(100);
batchStatus = getBatchStatus(jobOperator, id);
} catch (final InterruptedException e) {
return batchStatus;
return getBatchStatus(jobOperator, id);
}
}
while (!BATCH_END_STATUSES.contains(batchStatus));

0 comments on commit 422c2b7

Please sign in to comment.