Skip to content

Commit 47e5455

Browse files
committed
Add logging
1 parent 2bf230f commit 47e5455

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

singlecell/src/org/labkey/singlecell/analysis/ProcessSingleCellHandler.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public void processFilesRemote(List<SequenceOutputFile> inputFiles, JobContext c
269269
}
270270
currentFiles.stream().map(SingleCellStep.SeuratObjectWrapper::getFile).forEach(_resumer.getFileManager()::addIntermediateFile);
271271

272-
_resumer.setStepComplete(0, action, output0.getSeuratObjects(), output0.getMarkdownFile(), output0.getHtmlFile());
272+
_resumer.setStepComplete(ctx.getLogger(), prepareRawCounts, 0, action, output0.getSeuratObjects(), output0.getMarkdownFile(), output0.getHtmlFile());
273273
}
274274

275275
// Step 2: iterate seurat processing:
@@ -346,7 +346,7 @@ else if (step.createsSeuratObjects())
346346
action.setEndTime(end);
347347
ctx.getJob().getLogger().info(stepCtx.getProvider().getLabel() + " Duration: " + DurationFormatUtils.formatDurationWords(end.getTime() - start.getTime(), true, true));
348348

349-
_resumer.setStepComplete(stepIdx, action, currentFiles, output.getMarkdownFile(), output.getHtmlFile());
349+
_resumer.setStepComplete(ctx.getLogger(), step, stepIdx, action, currentFiles, output.getMarkdownFile(), output.getHtmlFile());
350350
}
351351

352352
for (SingleCellStep.SeuratObjectWrapper seurat : currentFiles)
@@ -497,8 +497,10 @@ public List<SingleCellStep.SeuratObjectWrapper> getSeuratFromStep(int stepIdx)
497497
return _stepOutputs.get(stepIdx);
498498
}
499499

500-
public void setStepComplete(int stepIdx, RecordedAction action, List<SingleCellStep.SeuratObjectWrapper> seurat, File markdown, File html) throws PipelineJobException
500+
public void setStepComplete(Logger log, SingleCellStep step, int stepIdx, RecordedAction action, List<SingleCellStep.SeuratObjectWrapper> seurat, File markdown, File html) throws PipelineJobException
501501
{
502+
log.info("Marking step complete: " + step.getProvider().getName());
503+
502504
if (seurat != null)
503505
{
504506
seurat.forEach(x -> action.addOutput(x.getFile(), "Seurat Object", false));

0 commit comments

Comments
 (0)