Skip to content

Commit 89be02e

Browse files
committed
Update names of function/variable
1 parent 528094c commit 89be02e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ private[spark] class DAGScheduler(
11401140
* `PythonRunner` needs to know what the pyspark memory and cores settings are for the profile
11411141
* being run. Pass them in the local properties of the task if it's set for the stage profile.
11421142
*/
1143-
private def addPysparkConfigsToProperties(stage: Stage, properties: Properties): Unit = {
1143+
private def addPySparkConfigsToProperties(stage: Stage, properties: Properties): Unit = {
11441144
val rp = sc.resourceProfileManager.resourceProfileFromId(stage.resourceProfileId)
11451145
val pysparkMem = rp.getPySparkMemory
11461146
// use the getOption on EXECUTOR_CORES.key instead of using the EXECUTOR_CORES config reader
@@ -1176,7 +1176,7 @@ private[spark] class DAGScheduler(
11761176
// Use the scheduling pool, job group, description, etc. from an ActiveJob associated
11771177
// with this Stage
11781178
val properties = jobIdToActiveJob(jobId).properties
1179-
addPysparkConfigsToProperties(stage, properties)
1179+
addPySparkConfigsToProperties(stage, properties)
11801180

11811181
runningStages += stage
11821182
// SparkListenerStageSubmitted should be posted before testing whether tasks are

python/pyspark/resource/executorrequests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class ExecutorResourceRequest(object):
5757
def __init__(self, resourceName, amount, discoveryScript="", vendor=""):
5858
self._name = resourceName
5959
self._amount = amount
60-
self._discoveryScript = discoveryScript
60+
self._discovery_script = discoveryScript
6161
self._vendor = vendor
6262

6363
@property
@@ -70,7 +70,7 @@ def amount(self):
7070

7171
@property
7272
def discoveryScript(self):
73-
return self._discoveryScript
73+
return self._discovery_script
7474

7575
@property
7676
def vendor(self):

0 commit comments

Comments
 (0)