HWRF  trunk@4391
hwrf_completion.py
1 #! /usr/bin/env python
2 
3 ##@namespace ush.hwrf_completion
4 # A simple script that logs the completion of an HWRF forecast cycle.
5 #
6 # This script writes the message "HWRF CYCLE COMPLETED" followed by the
7 # command line arguments, to the produtil.log.jlogger. This is called by
8 # the special Rocoto "completion" job that is used to tell Rocoto to stop
9 # running jobs for the forecast cycle.
10 
11 import sys
13 
14 def main():
15  """!Main program. Sets up the produtil package and logs a message
16  about cycle completion."""
18  produtil.log.jlogger.info('HWRF CYCLE COMPLETED: '+(' '.join(sys.argv[1:])))
19 
20 if __name__=='__main__': main()
Contains setup(), which initializes the produtil package.
Definition: setup.py:1
def setup(ignore_hup=False, dbnalert_logger=None, jobname=None, cluster=None, send_dbn=None, thread_logger=False, thread_stack=2 **24, kwargs)
Initializes the produtil package.
Definition: setup.py:15
Configures logging.
Definition: log.py:1