Get all accumulator updates from all tasks which belong to this execution and merge them.
Update the accumulator values of a task with the latest metrics for this task.
Update the accumulator values of a task with the latest metrics for this task. This is called every time we receive an executor heartbeat or when a task finishes.