16 parser.add_argument(
"executable", type=str, help=
"wrapper for O2O jobs")
17 parser.add_argument(
"-n",
"--name", type=str, help=
"the O2O job name" )
18 parser.add_argument(
"-i",
"--inputFromDb", action=
"store_true", help=
"get input params from the db ( labels: '$db' for the database connection string; '$tag' for the destination tag name")
19 parser.add_argument(
"-d",
"--dev", action=
"store_true", help=
"bookkeeping in dev database")
20 parser.add_argument(
"-a",
"--auth", type=str, help=
"path of the authentication file")
21 parser.add_argument(
"-v",
"--verbose", action=
"store_true", help=
"job output mirrored to screen (default=logfile only)")
22 args = parser.parse_args()
25 parser.error(
"Job name not given.")
27 db_service = o2olib.prod_db_service
29 db_service = o2olib.dev_db_service
30 runMgr = o2olib.O2ORunMgr()
32 if runMgr.connect( db_service, args ):
33 ret = runMgr.executeJob( args )