We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6face3a commit d0a81f9Copy full SHA for d0a81f9
1 file changed
workflowwebtools/workflowinfo.py
@@ -451,6 +451,22 @@ def get_prep_id(self):
451
452
return str(self.get_workflow_parameters().get('PrepID', 'NoPrepID'))
453
454
+ def get_monitoring_info(self):
455
+ """
456
+ :returns: the information to send to CMSMONIT
457
+ :rtype: dict
458
459
+ # Dummy call to get self.explanations filled
460
+ self.get_explanation(0)
461
+
462
+ return {
463
+ 'errors': self.get_errors(True),
464
+ 'prepID': self.get_prep_id(),
465
+ 'params': self.get_workflow_parameters(),
466
+ 'recovery': self.get_recovery_info(),
467
+ 'logs': self.explanations
468
+ }
469
470
471
class PrepIDInfo(Info):
472
"""
0 commit comments