CleanupStepCounter removes per-run step counter and reference count state. This is used by tests and later stacked branches that have a real run lifecycle.
(runID uuid.UUID)
| 155 | // state. This is used by tests and later stacked branches that have a |
| 156 | // real run lifecycle. |
| 157 | func CleanupStepCounter(runID uuid.UUID) { |
| 158 | stepCounters.Delete(runID) |
| 159 | runRefCounts.Delete(runID) |
| 160 | } |
| 161 | |
| 162 | const stepFinalizeTimeout = 5 * time.Second |
| 163 |