Skip to content

Commit 4f787f8

Browse files
committed
Better handling of GeneticCalculationsImportTask cancels
1 parent 69e412d commit 4f787f8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ehr/src/org/labkey/ehr/pipeline/GeneticCalculationsImportTask.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,14 @@ else if (kinshipTable.getSqlDialect().isPostgreSQL())
307307
if (lineNum % 250000 == 0)
308308
{
309309
log.info("imported " + String.format("%,d", lineNum) + " rows");
310+
if (job != null)
311+
{
312+
job.updateStatusForTask();
313+
if (job.isCancelled())
314+
{
315+
throw new CancelledException();
316+
}
317+
}
310318
}
311319
}
312320

0 commit comments

Comments
 (0)