Skip to content

Commit

Permalink
(FORK COMMIT) Add new metrics for insight into job size
Browse files Browse the repository at this point in the history
Querying historical data will still require crazy complex workarounds, but this would make custom billing calculations more tractable in future
  • Loading branch information
abought committed Aug 22, 2024
1 parent 2ab384c commit 2ca8795
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,12 @@ private boolean checkVcfFiles(WorkflowContext context) {

// init counters
context.incCounter("samples", noSamples);
context.incCounter("genotypes", noSamples * noSnps);
context.incCounter("chromosomes", noSamples * chromosomes.size());
context.incCounter("genotypes", noSamples * noSnps); // Legacy CG metric is convolution of two numbers
context.incCounter("just_genotypes", noSnps);
context.incCounter("chromosomes", noSamples * chromosomes.size()); // Legacy CG metric is convolution of two numbers
context.incCounter("just_chromosomes", chromosomes.size());
context.incCounter("chunks", chunks);
context.incCounter("chunk_samples", chunks * noSamples);
context.incCounter("chunk_samples", chunks * noSamples); // Store calculation for convenience, since it's hard to query DB across rows
context.incCounter("runs", 1);
context.incCounter("refpanel_" + reference, 1);
context.incCounter("phasing_" + "eagle", 1);
Expand Down

0 comments on commit 2ca8795

Please sign in to comment.