Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.stsci.edu/spst/UnixTransition/doc/check_grid.html
Дата изменения: Fri Apr 8 12:46:14 2016
Дата индексирования: Mon Apr 11 00:44:28 2016
Кодировка:

Поисковые слова: чоеыойе рмбоефщ
Python: module check_grid
 
 
check_grid (version 16.02.18)
index
check_grid.py

PURPOSE --
To check the requested GridEngine queues are usable and not in a state
that prevents their use.  If problems are found, then send email to
the provided list of names.  Also, optionally, include a persistent
problem file so that future runs will only send emails to new problems.
 
DEVELOPER --
Merle Reinhart
 
MODIFICATION HISTORY --
 
o Initial implementation - 2/17/16
o Add identification of which GE Cluster - mdr 2/18/16
o Fix bug when there is an error condition - mdr 2/18/16

 
Functions
       
check_a_queue(queue)
This function will check the state of the specified queue.
 
Inputs:
  queue - name of the queue to check - string
  
Returns:
  A dictionary of the state of the requested queue
get_previous_problems(pers_file)
This function will read a file that contains the name that had problems 
during the previous running.
 
Inputs:
  pers_file - the persistent file to read in
  
Returns:
  List of names that had prior problems
run(queues, email_list, persistent_file=None)
This tool will check that the requested GridEngine queues are in a
functional state or not.  If not, then an email will be sent to
the addresses contained in the input email list.
 
Inputs:
  queues          - queues to check - string, list or file
  email_list      - email address to notify of problems - string, list or file
  persistent_file - optional persistent file that holds any problem queue names 
                     from the previous run (used to suppress extra email between
                     multiple runs)
write_current_problems(pers_file, problems)
This function will write out to a file the current names that have
problems.
 
Inputs:
  pers_file - the persitent file to read in
  problems  - list of the names that have problems
  
Returns:
  Nothing

 
Data
        __version__ = '16.02.18'