Exclude expected activity preconditions from batcher processor error metric
Author: fretz12Created Sep 25, 2026Updated Sep 25, 2026
Expected Behavior
Expected terminal or duplicate activity cancel/terminate outcomes are excluded from batcher_processor_errors while remaining in batch-operation result counts.
Actual Behavior
These expected FailedPrecondition responses increment batcher_processor_errors and can inflate the observed error rate.
Steps to Reproduce the Problem
- Start an activity cancel or terminate batch operation.
- Have a target activity already be terminal or already have the corresponding request.
- Observe the processor error metric.
Source: temporalio/temporal