Fix completed tasks metrics

The completed tasks metrics was misbehaving when
retrying replication tasks, because the reschedule
was adding the metric task wrapper multiple times.

Check for double-wrapping and avoid duplications.

Change-Id: Ib7a87c667fba8a8ef0d6bb05b8a50303c2d37139
2 files changed
tree: 9758271c75f7b500db296ce20e3a62690dabff8a
  1. example-setup/
  2. src/
  3. .gitignore
  4. BUILD
  5. external_plugin_deps.bzl
  6. Jenkinsfile
  7. LICENSE