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(
"-d",
"--dev", action=
"store_true", help=
"bookkeeping in dev database")
19 parser.add_argument(
"-p",
"--private", action=
"store_true", help=
"bookkeeping in private database")
20 parser.add_argument(
"-a",
"--auth", type=str, help=
"path of the authentication file")
21 args = parser.parse_args()
24 parser.error(
"Job name not given.")
26 command = args.executable
31 db_service = o2olib.dev_db_service
33 db_service = o2olib.prod_db_service
34 runMgr = o2olib.O2ORunMgr()
36 if runMgr.connect( db_service, args.auth ):
37 ret = runMgr.executeJob( args.name, command )