#! /usr/bin/env python ##@namespace ush.hwrf_completion # A simple script that logs the completion of an HWRF forecast cycle. # # This script writes the message "HWRF CYCLE COMPLETED" followed by the # command line arguments, to the produtil.log.jlogger. This is called by # the special Rocoto "completion" job that is used to tell Rocoto to stop # running jobs for the forecast cycle. import sys import produtil.setup, produtil.log def main(): """!Main program. Sets up the produtil package and logs a message about cycle completion.""" produtil.setup.setup() produtil.log.jlogger.info('HWRF CYCLE COMPLETED: '+(' '.join(sys.argv[1:]))) if __name__=='__main__': main()