Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /pilot2/pilot/user/rubin/jobmetrics.py was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #!/usr/bin/env python
0002 # Licensed under the Apache License, Version 2.0 (the "License");
0003 # you may not use this file except in compliance with the License.
0004 # You may obtain a copy of the License at
0005 # http://www.apache.org/licenses/LICENSE-2.0
0006 #
0007 # Authors:
0008 # - Paul Nilsson, paul.nilsson@cern.ch, 2018-2021
0009 
0010 # from pilot.util.jobmetrics import get_job_metrics_entry
0011 
0012 import logging
0013 logger = logging.getLogger(__name__)
0014 
0015 
0016 def get_job_metrics(job):
0017     """
0018     Return a properly formatted job metrics string.
0019     The format of the job metrics string is defined by the server. It will be reported to the server during updateJob.
0020 
0021     Example of job metrics:
0022     Number of events read | Number of events written | vmPeak maximum | vmPeak average | RSS average | ..
0023     Format: nEvents=<int> nEventsW=<int> vmPeakMax=<int> vmPeakMean=<int> RSSMean=<int> hs06=<float> shutdownTime=<int>
0024             cpuFactor=<float> cpuLimit=<float> diskLimit=<float> jobStart=<int> memLimit=<int> runLimit=<float>
0025 
0026     :param job: job object.
0027     :return: job metrics (string).
0028     """
0029 
0030     return ""