mridulm commented on a change in pull request #33385:
URL: https://github.com/apache/spark/pull/33385#discussion_r677116925



##########
File path: core/src/main/scala/org/apache/spark/TaskContextImpl.scala
##########
@@ -54,6 +54,7 @@ private[spark] class TaskContextImpl(
     @transient private val metricsSystem: MetricsSystem,
     // The default value is only used in tests.
     override val taskMetrics: TaskMetrics = TaskMetrics.empty,
+    override val cpus: Int = 0,

Review comment:
       CPUS_PER_TASK is simply "spark.task.cpus" with default 1 ... which 
should be available from `SparkEnv.conf` ?
   `SparkEnv.conf.get(config.CPUS_PER_TASK)` ?




-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to