Sweeping !1055 from master to devel: [master] Minor fix and optimisation in ProductionStatusAgent
BEGINRELEASENOTES
*Production Management FIX: Only flush transformations if there are unused files
ENDRELEASENOTES
GitLab jobs artifacts no longer stored forever as of Monday, November 4th 08:30h. Further information under https://cern.ch/otg0152576
BEGINRELEASENOTES
*Production Management FIX: Only flush transformations if there are unused files
ENDRELEASENOTES