Exemplo n.º 1
0
def intradaysnapshot():
	logger.info("intraday snapshot")
	cmdline = "LON_MM_EVENING_INTRADAY GFTBSGL --force-priority 100 --job MKT_SNAPSHOT_LIVE_FASTINTRA --user-name SG435551 --now  --no-tfc --sub-batch _FAST --ignore-day"
	ntmad_ret = ntmadsubmit(cmdline)
	jobid = ntmad_ret["job_id"]
	mad = maddb("MADBUKL", {"select_progress":"""select job_id, proportion_done, sts_cod from exo_evt_log where job_id in (%s)"""})

	while not mad.isdone(jobid):
		time.sleep(60*5)

	logger.info("intradaysnapshot done")
Exemplo n.º 2
0
 def submit(self, dep=False):
     return ntmadsubmit(self.depcmds) if dep else ntmadsubmit(self.cmds)