pyspark.TaskContext.get#
- classmethodTaskContext.get()[source]#
Return the currently active
TaskContext. This can be called inside ofuser functions to access contextual information about running tasks.- Returns
TaskContext, optional
Notes
Must be called on the worker, not the driver. Returns
Noneif not initialized.