NXCALS-2405 Fix exporting metrics for compaction's total processing status
#Merge request template @acc-logging-team - please have a look for approval.
Before we were exporting only the last task's processing status, ignoring the total one. Currently the process it taking into respect the total processing status instance and correctly exports the expected values
Closes NXCALS-2405
Edited by Grigorios Avgitidis