return the currently active taskcontext . this can be called inside of user functions to access contextual information about running tasks . concode_field_sep ThreadLocal<TaskContext> taskContext concode_field_sep void setTaskContext concode_elem_sep boolean isInterrupted concode_elem_sep int partitionId concode_elem_sep void addOnCompleteCallback concode_elem_sep TaskContext addTaskCompletionListener concode_elem_sep TaskContext addTaskCompletionListener concode_elem_sep boolean isRunningLocally concode_elem_sep void unset concode_elem_sep boolean runningLocally concode_elem_sep boolean isCompleted concode_elem_sep int stageId concode_elem_sep long attemptId concode_elem_sep TaskMetrics taskMetrics
TaskContext function ( ) { return taskContext . get ( ) ; }