def Process(msg): job_id = msg.attrs["job_id"] JobContOutput.P( "Got a job completion msg. job_id:%s Terminsting the cluster ..." % job_id) TermCluster(job_id) JobReq.DeleteMsg(msg.attrs["job_req_msg_recript_handle"]) _DeleteMsg(msg) S3.Sync()