We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91cf1c6 commit bdd77feCopy full SHA for bdd77fe
python/pyspark/tests/test_rdd.py
@@ -834,9 +834,8 @@ def run_job(job_group, index):
834
and then exits.
835
"""
836
try:
837
- self.sc.setJobGroup(job_group, "test rdd collect with setting job group")
838
- self.sc.parallelize([15]).map(lambda x: time.sleep(x)).collect(
839
- job_group, "test rdd collect with setting job group")
+ self.sc.parallelize([15]).map(lambda x: time.sleep(x)) \
+ .collectWithJobGroup(job_group, "test rdd collect with setting job group")
840
is_job_cancelled[index] = False
841
except Exception:
842
# Assume that exception means job cancellation.
0 commit comments