15 msg.info(
'logging set in %s', sys.argv[0])
20 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
22 @stdTrfExceptionHandler
26 msg.info(
'This is %s', sys.argv[0])
30 trf.parseCmdLineArgs(sys.argv[1:])
34 msg.info(
"%s stopped at %s, trf exit code %d", (sys.argv[0], time.asctime(), trf.exitCode))
35 sys.exit(trf.exitCode)
39 trf =
transform(executor = scriptExecutor(name =
'The Sandman', exe =
'sleep', exeArgs = [
'dust']))
46 parser.defineArgGroup(
'Sleep_trf',
'Sleep_trf specific options')
47 parser.add_argument(
'--dust', type=trfArgClasses.argFactory(trfArgClasses.argInt), group=
'Sleep_trf',
48 help=
'How much dust to throw (=sleep time in seconds)', default=trfArgClasses.argInt(10))
51 if __name__ ==
'__main__':