def get_compute_log_observable(graphene_info, run_id, step_key, io_type, cursor=None): check.inst_param(graphene_info, "graphene_info", ResolveInfo) check.str_param(run_id, "run_id") check.str_param(step_key, "step_key") check.inst_param(io_type, "io_type", ComputeIOType) check.opt_str_param(cursor, "cursor") return graphene_info.context.instance.compute_log_manager.observable( run_id, step_key, io_type, cursor ).map(lambda update: from_compute_log_file(graphene_info, update))
def get_compute_log_observable(graphene_info, run_id, step_key, io_type, cursor=None): check.inst_param(graphene_info, 'graphene_info', ResolveInfo) check.str_param(run_id, 'run_id') check.str_param(step_key, 'step_key') check.inst_param(io_type, 'io_type', ComputeIOType) check.opt_str_param(cursor, 'cursor') return graphene_info.context.instance.compute_log_manager.observable( run_id, step_key, io_type, cursor ).map(lambda update: from_compute_log_file(graphene_info, update))