def trace_task(task, uuid, args, kwargs, request={}, **opts):
 try:
  if (task.__trace__ is None):
   task.__trace__ = build_tracer(task.name, task, **opts)
  return task.__trace__(uuid, args, kwargs, request)
 except Exception as exc:
  return trace_ok_t(report_internal_error(task, exc), None, 0.0, None)

def trace_task ( task , uuid , args , kwargs , request = { } , ** opts ) : try : if ( task . __trace__ is None ) : task . __trace__ = build_tracer ( task . name , task , ** opts ) return task . __trace__ ( uuid , args , kwargs , request ) except Exception as exc : return trace_ok_t ( report_internal_error ( task , exc ) , None , 0.0 , None )
trace task execution .