mridulm commented on a change in pull request #33385:
URL: https://github.com/apache/spark/pull/33385#discussion_r677117650
##########
File path: core/src/main/scala/org/apache/spark/scheduler/TaskDescription.scala
##########
@@ -57,6 +57,7 @@ private[spark] class TaskDescription(
val addedJars: Map[String, Long],
val addedArchives: Map[String, Long],
val properties: Properties,
+ val cpus: Int,
Review comment:
@xwu99 Please add a check to make sure we dont have invalid value for
`cpus` coming in - `assert(cpus > 0)`.
There should be some validation either here, or where it is getting passed
in from.
--
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]