HWRF
trunk@4391
Main Page
Guides
Packages
Classes
Python Files
Configuration Files
File List
ush
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
12
import
produtil.setup
,
produtil.log
13
14
def
main():
15
"""!Main program. Sets up the produtil package and logs a message
16
about cycle completion."""
17
produtil.setup.setup
()
18
produtil.log.jlogger.info(
'HWRF CYCLE COMPLETED: '
+(
' '
.join(sys.argv[1:])))
19
20
if
__name__==
'__main__'
: main()
produtil.setup
Contains setup(), which initializes the produtil package.
Definition:
setup.py:1
produtil.setup.setup
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
produtil.log
Configures logging.
Definition:
log.py:1
Generated by
1.8.10