pan3793 commented on code in PR #57810:
URL: https://github.com/apache/spark/pull/57810#discussion_r3726600989
##########
python/pyspark/taskcontext.py:
##########
@@ -265,9 +266,8 @@ def getLocalProperty(self, key: str) -> Optional[str]:
def cpus(self) -> int:
"""
- CPUs allocated to the task, rounded up to a whole number when the exact
- allocation is fractional. Use :meth:`TaskContext.cpuAmount` to get the
exact,
- possibly fractional, amount.
+ CPUs allocated to the task, rounded up to a whole number when the
allocation is
+ fractional. Use :meth:`TaskContext.cpuAmount` to get the possibly
fractional amount.
Review Comment:
is it still worth removing "exact"? but either version is fine to me
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]