File indexing completed on 2024-04-06 12:13:07
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011 #include "FWCore/Services/src/JobReportService.h"
0012 #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
0013 #include "FWCore/ParameterSet/interface/ParameterSetDescription.h"
0014
0015 namespace edm {
0016 namespace service {
0017
0018 JobReportService::~JobReportService() {}
0019
0020 JobReportService::JobReportService(ParameterSet const&, ActivityRegistry& reg) : JobReport() {
0021 reg.watchPostEndJob(this, &JobReportService::postEndJob);
0022 reg.watchJobFailure(this, &JobReportService::frameworkShutdownOnFailure);
0023
0024
0025
0026
0027 }
0028
0029 void JobReportService::postEndJob() {
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042 impl()->flushFiles();
0043 }
0044
0045 void JobReportService::frameworkShutdownOnFailure() {
0046
0047
0048
0049
0050
0051
0052
0053 impl()->flushFiles();
0054 }
0055
0056 void JobReportService::fillDescriptions(ConfigurationDescriptions& descriptions) {
0057 ParameterSetDescription desc;
0058 desc.setComment("Enables job reports.");
0059 descriptions.addDefault(desc);
0060 }
0061 }
0062 }