HyukjinKwon commented on a change in pull request #26239:
[SPARK-29582][PYSPARK] Support `TaskContext.get()` in a barrier task from
Python side
URL: https://github.com/apache/spark/pull/26239#discussion_r340930532
##########
File path: python/pyspark/taskcontext.py
##########
@@ -162,7 +166,10 @@ def get(cls):
running tasks.
.. note:: Must be called on the worker, not the driver. Returns None
if not initialized.
+ A RuntimeError will raise if it is not in a barrier stage.
Review comment:
nit RuntimeError -> an exception
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]