7 from arvados.events import subscribe
9 parser = argparse.ArgumentParser()
10 parser.add_argument('-u', '--uuid', type=str, default="")
11 args = parser.parse_args()
14 if len(args.uuid)>0: filters = [ ['object_uuid', '=', args.uuid] ]
16 api = arvados.api('v1', cache=False)
23 ws = subscribe(api, filters, lambda ev: on_message(ev))
25 except KeyboardInterrupt:
26 print '' # don't log it