jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

Metrics: Do metrics get aggregated / summed across partitions or not necessarily? #136

Open follis opened 3 years ago

follis commented 3 years ago

The StepContext and StepExecution provide access to metrics recorded for a chunk step. The spec does not describe how this is handled in a partitioned step, but since you have no way to get metrics for an individual partition you might assume these step-level metrics are aggregated across the partitions. The spec should say that and perhaps provide a way to get to partition metrics. Although..if you ask the StepContext for metrics from within a partition you probably get the metrics for that partition. Again..spec should clarify how this is supposed to work.