prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Make the multi-worker feature for Java worker experimental
  Right now, the multi-worker feature for Java worker is enabled by default, but the `ActorHandle::kill()` API doesn't work well if multi-worker is enabled because it will kill the whole process instead of one worker in the process.
  
  To avoid complaints from Java users, we should disable the multi-worker feature by default, but we still enable it in unit test.
  
  </issue>
  <code>
  [start of python/ray/job_config.py]
  1 import ray
  2 
  3 
  4 class JobConfig:
  5     """A class used to store the configurations of a job.
  6 
  7     Attributes:
  8         worker_env (dict): Environment variables to be set on worker
  9             processes.
  10         num_java_workers_per_process (int): The number of java workers per
  11             worker process.
  12         jvm_options (str[]): The jvm options for java workers of the job.
  13     """
  14 
  15     def __init__(
  16             self,
  17             worker_env=None,
  18             num_java_workers_per_process=10,
  19             jvm_options=None,
  20     ):
  21         if worker_env is None:
  22             self.worker_env = dict()
  23         else:
  24             self.worker_env = worker_env
  25         self.num_java_workers_per_process = num_java_workers_per_process
  26         if jvm_options is None:
  27             self.jvm_options = []
  28         else:
  29             self.jvm_options = jvm_options
  30 
  31     def serialize(self):
  32         job_config = ray.gcs_utils.JobConfig()
  33         for key in self.worker_env:
  34             job_config.worker_env[key] = self.worker_env[key]
  35         job_config.num_java_workers_per_process = (
  36             self.num_java_workers_per_process)
  37         job_config.jvm_options.extend(self.jvm_options)
  38         return job_config.SerializeToString()
  39
  [end of python/ray/job_config.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/python/ray/job_config.py b/python/ray/job_config.py
  --- a/python/ray/job_config.py
  +++ b/python/ray/job_config.py
  @@ -15,7 +15,7 @@
       def __init__(
               self,
               worker_env=None,
  -            num_java_workers_per_process=10,
  +            num_java_workers_per_process=1,
               jvm_options=None,
       ):
           if worker_env is None:
  
verification_info: {"golden_diff": "diff --git a/python/ray/job_config.py b/python/ray/job_config.py\n--- a/python/ray/job_config.py\n+++ b/python/ray/job_config.py\n@@ -15,7 +15,7 @@\n     def __init__(\n             self,\n             worker_env=None,\n-            num_java_workers_per_process=10,\n+            num_java_workers_per_process=1,\n             jvm_options=None,\n     ):\n         if worker_env is None:\n", "issue": "Make the multi-worker feature for Java worker experimental\nRight now, the multi-worker feature for Java worker is enabled by default, but the `ActorHandle::kill()` API doesn't work well if multi-worker is enabled because it will kill the whole process instead of one worker in the process.\r\n\r\nTo avoid complaints from Java users, we should disable the multi-worker feature by default, but we still enable it in unit test.\n", "before_files": [{"content": "import ray\n\n\nclass JobConfig:\n    \"\"\"A class used to store the configurations of a job.\n\n    Attributes:\n        worker_env (dict): Environment variables to be set on worker\n            processes.\n        num_java_workers_per_process (int): The number of java workers per\n            worker process.\n        jvm_options (str[]): The jvm options for java workers of the job.\n    \"\"\"\n\n    def __init__(\n            self,\n            worker_env=None,\n            num_java_workers_per_process=10,\n            jvm_options=None,\n    ):\n        if worker_env is None:\n            self.worker_env = dict()\n        else:\n            self.worker_env = worker_env\n        self.num_java_workers_per_process = num_java_workers_per_process\n        if jvm_options is None:\n            self.jvm_options = []\n        else:\n            self.jvm_options = jvm_options\n\n    def serialize(self):\n        job_config = ray.gcs_utils.JobConfig()\n        for key in self.worker_env:\n            job_config.worker_env[key] = self.worker_env[key]\n        job_config.num_java_workers_per_process = (\n            self.num_java_workers_per_process)\n        job_config.jvm_options.extend(self.jvm_options)\n        return job_config.SerializeToString()\n", "path": "python/ray/job_config.py"}]}