Skip to content

Fix symmetric-run teardown errors on Slurm when processes exit as zombies - #62591

Closed
ssam18 wants to merge 10 commits into
ray-project:masterfrom
ssam18:fix/symmetric-run-teardown-errors
Closed

ssam18 wants to merge 10 commits into
ray-project:masterfrom
ssam18:fix/symmetric-run-teardown-errors

Conversation

@ssam18

@ssam18 ssam18 commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

When running ray symmetric-run on Slurm, Ray processes exit as zombies during teardown because ray stop is not their parent process and psutil.wait_procs() can't reap them via os.waitpid() that causes a false "Stopped 0 out of N" warning even though the job completed cleanly. Separately, worker nodes were always hitting a CalledProcessError on normal shutdown because ray start --block exits non-zero when GCS goes down, which is expected behavior and not an error. Both issues are fixed: zombies are now counted as pre-stopped before the signal loop, and check=True is removed from the worker's blocking ray start call. Fixes #62390.

@ssam18
ssam18 requested a review from a team as a code owner April 14, 2026 02:16
@ssam18
ssam18 force-pushed the fix/symmetric-run-teardown-errors branch from 0887b9c to 2154977 Compare April 14, 2026 02:17

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the process termination logic to include zombie processes and modifies worker node startup by removing strict error checking. Review feedback highlights that the zombie process counting is over-inclusive and should be filtered to Ray-specific processes. Additionally, removing the error check in the worker startup command may silently ignore failures, suggesting a need for explicit return code verification or better documentation.

Comment thread python/ray/scripts/scripts.py Resolved
Comment thread python/ray/scripts/symmetric_run.py Resolved
Comment thread python/ray/scripts/scripts.py Resolved
Comment thread python/ray/scripts/scripts.py Resolved
@ssam18
ssam18 force-pushed the fix/symmetric-run-teardown-errors branch from 2154977 to 7207ffd Compare April 14, 2026 02:22
@ray-gardener ray-gardener Bot added core Issues that should be addressed in Ray Core community-contribution Contributed by the community labels Apr 14, 2026
@Future-Outlier

Copy link
Copy Markdown
Member

@machichima is interested in reviewing this PR

@Future-Outlier Future-Outlier added the go add ONLY when ready to merge, run all tests label Apr 20, 2026
Comment thread python/ray/scripts/scripts.py Resolved
@ssam18
ssam18 force-pushed the fix/symmetric-run-teardown-errors branch from 28f1410 to 41202b8 Compare April 21, 2026 14:21
Comment thread python/ray/scripts/scripts.py Resolved
@github-actions

github-actions Bot commented May 6, 2026

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had
any activity for 14 days. It will be closed in another 14 days if no further activity occurs.
Thank you for your contributions.

You can always ask for help on our discussion forum or Ray's public slack channel.

If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@github-actions github-actions Bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label May 6, 2026
@SamareshSingh

Copy link
Copy Markdown

Can someone take a look into this PR?

@Future-Outlier

Copy link
Copy Markdown
Member

sorry for the late review, will block time to review this

@Future-Outlier Future-Outlier moved this from to review to this week in @Future-Outlier's kuberay project May 6, 2026

@Future-Outlier Future-Outlier left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ssam18,
could you help test this on a Slurm cluster?

Please follow the reproduce script in this issue:
#62390

@Future-Outlier

Copy link
Copy Markdown
Member

cc @SamareshSingh

@Future-Outlier Future-Outlier left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested it on my computer using the “slurm-docker-cluster” project:
https://github.com/machichima/slurm-docker-cluster/tree/ray-on-slurm

I found that this does not resolve the original issue.
Please make sure to verify that the problem is actually fixed before pinging us next time. Thanks.
Here is the log from my test.

slurm-6.txt

@Future-Outlier

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: de64f46b24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread python/ray/scripts/symmetric_run.py Resolved

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves process management and error handling in Ray scripts. It enhances the process termination logic in scripts.py to better handle zombie processes and improve progress tracking, and updates symmetric_run.py to distinguish between startup failures and cluster teardowns. The reviewer provided suggestions to optimize process iteration by leveraging the proc.info dictionary, improve the accuracy of the termination progress counter by including pre-stopped processes, and include SIGINT in the expected shutdown codes for better robustness.

Comment thread python/ray/scripts/scripts.py Resolved
Comment thread python/ray/scripts/scripts.py Resolved
Comment thread python/ray/scripts/symmetric_run.py Resolved
@ssam18

ssam18 commented May 7, 2026

Copy link
Copy Markdown
Contributor Author

@Future-Outlier -
slurm-1.txt

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread python/ray/scripts/symmetric_run.py Resolved

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 6187d7a. Configure here.

pre_stopped.append(proc)
break
else:
process_infos.append((proc, name, cmdline))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cached info dict allows None values causing TypeError

Medium Severity

Switching from proc.name()/proc.cmdline() method calls to reading proc.info dict values removes the exception-based protection against inaccessible process attributes. With psutil 5.9.6 (Ray's pinned version), proc.info["cmdline"] returns None (the default ad_value) for processes where AccessDenied or NoSuchProcess occurred, rather than raising psutil.Error. The except psutil.Error: pass clause never fires since dict access doesn't raise. Processes with None cmdline or name are now added to process_infos, and the downstream subprocess.list2cmdline(proc_args) or keyword in corpus will crash with a TypeError when proc_args or corpus is None.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 6187d7a. Configure here.

@Future-Outlier

Copy link
Copy Markdown
Member

Hi, can you fix the CI error?

@Future-Outlier

Future-Outlier commented May 7, 2026 •

Copy link
Copy Markdown
Member

Hi, @ssam18
Hi, do you know why running:

ray start --head
ray stop

on macOS or Linux does not leave any zombie processes, but running the same commands in a Slurm Docker cluster does?

@Future-Outlier

Future-Outlier commented May 7, 2026 •

Copy link
Copy Markdown
Member

Here is my research on the cause of the problem.
The short answer is that it's due to differences in PIDs.

take Linux as example (PID 1 is systemd)

  1. ray stop calls kill_procs() in scripts.py.
    1. kill_procs sends SIGTERM to each Ray processes (raylet, gcs_server, ...)
  2. Each processes receives SIGTERM, runs cleanup, calls exit().
    Kernel marks them as STATUS_ZOMBIE (entry stays in process table,
    waiting for parent to reap). [1]
  3. Kernel sends SIGCHLD to each process's current parent
    (PID 1 = systemd, because processes were orphaned earlier when ray start --head
    exited, and the kernel reparented those orphan processes (updated each child's parent pointer to PID 1)). [2]
  4. systemd sigchld_event_source turns from OFF to ON. [3]
  5. systemd reap Ray zombie processes [4]
  6. in the function psutil.wait_procs, the dead processes are classified into the gone (stopped) list,
    len(stopped) increases → final report: "Stopped all N Ray processes"

compare to slurm docker cluster (PID 1 = slurmd)

  1. ray stop calls kill_procs() in scripts.py.
    1. kill_procs sends SIGTERM to each Ray processes (raylet, gcs_server, ...)
  2. Each processes receives SIGTERM, runs cleanup, calls exit().
    Kernel marks them as STATUS_ZOMBIE (entry stays in process table,
    waiting for parent to reap). [1]
  3. Kernel sends SIGCHLD to each process's current parent
    (PID 1 = slurmd, because processes were orphaned earlier when ray start --head
    exited, and the kernel reparented those orphan processes (updated each child's parent pointer to PID 1)). [2]
  4. PID 1 is slurmd. In slurmd.c, the main signal registrations include SIGINT, SIGTERM, SIGQUIT, SIGHUP, SIGUSR2, SIGPIPE, and SIGPROF, but not SIGCHLD.
  5. those Ray processes keep staying zombie status
  6. in the function psutil.wait_procs, the dead processes are classified into the (alive) list → final report: "Stopped 0 out of N"

Reference

[1] https://github.com/torvalds/linux/blob/8ab992f815d6736b5c7a6f5fd7bfe7bc106bb3dc/kernel/exit.c#L737-L749
[2] https://github.com/torvalds/linux/blob/8ab992f815d6736b5c7a6f5fd7bfe7bc106bb3dc/kernel/signal.c#L2158-L2166
[3] https://github.com/systemd/systemd/blob/67e23e0e050fca0279fc6045de20ed05b0b97bee/src/core/manager.c#L3003
[4] https://github.com/systemd/systemd/blob/67e23e0e050fca0279fc6045de20ed05b0b97bee/src/core/manager.c#L2918-L2920
[5a] slurmd registers handled signals — no SIGCHLD:
https://github.com/SchedMD/slurm/blob/05372c1fb079ff4565fb2ef42ff8971607e9fe5a/src/slurmd/slurmd/slurmd.c#L470-L476

[5b] slurmd signal-handler functions — none reaps children:
https://github.com/SchedMD/slurm/blob/05372c1fb079ff4565fb2ef42ff8971607e9fe5a/src/slurmd/slurmd/slurmd.c#L287-L347

[5c] official slurmd manual SIGNALS section, no SIGCHLD:
https://slurm.schedmd.com/slurmd.html

[6] SIGCHLD: a POSIX signal sent to a parent process whenever
one of its child processes changes state.

@Future-Outlier Future-Outlier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the solution seems correct, will review more tmr, plz fix the ci issue, tks!

@Future-Outlier

Copy link
Copy Markdown
Member

/gemini review

@Future-Outlier

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6187d7a404

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pre_stopped.append(proc)
break
else:
process_infos.append((proc, name, cmdline))

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Filter out missing process attrs before queuing candidates

Using proc.info from psutil.process_iter([...]) can yield None for fields like cmdline or name when access is denied, but this code unconditionally appends those values into process_infos. Later matching calls subprocess.list2cmdline(proc_args) and keyword in corpus, which will raise TypeError when proc_args/corpus is None, causing ray stop to crash on systems with restricted /proc visibility (a regression from the previous proc.name()/proc.cmdline() calls that were skipped via psutil.Error).

Useful? React with 👍 / 👎.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances process management and error reporting within Ray's scripts. It updates the process termination logic to accurately account for zombie processes and those that disappear during the shutdown sequence. Additionally, it improves worker startup diagnostics by distinguishing between expected shutdowns and early failures based on exit codes and execution duration. Feedback was provided to ensure robust handling of potentially null process attributes from psutil to prevent runtime errors.

Comment on lines +1379 to +1380
name = info["name"]
cmdline = info["cmdline"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

psutil can return None for process attributes like name and cmdline if they are not available (e.g., for some zombies or if the process disappears between the iteration and attribute access). If name is None and filter_by_cmd is True, the subsequent membership check (keyword in corpus) will raise a TypeError. Similarly, subprocess.list2cmdline will fail if cmdline is None. It is safer to default these to an empty string and an empty list, respectively.

Suggested change
name = info["name"]
cmdline = info["cmdline"]
name = info["name"] or ""
cmdline = info["cmdline"] or []

@Future-Outlier

Copy link
Copy Markdown
Member

Hi, @ssam18 @SamareshSingh
do you have bandwidth to solve the CI error and resolve comments?
if not, can I push commit to this branch?

@ssam18

ssam18 commented May 8, 2026

Copy link
Copy Markdown
Contributor Author

Hi, @ssam18 @SamareshSingh do you have bandwidth to solve the CI error and resolve comments? if not, can I push commit to this branch?

Yes, please go ahead and push a commit to this branch. I am a bit busy with something else.

@Future-Outlier

Copy link
Copy Markdown
Member

Update: I added an init process (tini) as PID 1 in my Docker container, and the zombie problem is gone — ray stop now sees status='terminated' instead of status='zombie'.
So the root cause is PID 1 not being a reaper inside the container, which is a deployment-layer problem (Ray-on-Docker without proper init), not a Slurm problem and not really a Ray application bug. The proper fix lives at the container init layer (tini / dumb-init / docker run --init), not in Ray.

What I think we should still do:

  1. Document the requirement: when running ray symmetric-run (or any Ray) inside Docker, PID 1 must be a proper init (tini / --init) — otherwise zombies will accumulate. [1]

here's my slurm job log and screenshot proofs:
0508-slurm-1.txt

image image
services:
  mysql:
    image: mariadb:12
    hostname: mysql
    container_name: mysql
    environment:
      MYSQL_RANDOM_ROOT_PASSWORD: "yes"
      MYSQL_DATABASE: ${MYSQL_DATABASE:-slurm_acct_db}
      MYSQL_USER: ${MYSQL_USER:-slurm}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:-password}
    volumes:
      - var_lib_mysql:/var/lib/mysql
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 30s

  slurmdbd:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    build:
      context: .
      args:
        SLURM_VERSION: ${SLURM_VERSION:-25.11.2}
        GPU_ENABLE: ${GPU_ENABLE:-false}
        CUDA_VERSION: ${CUDA_VERSION:-12.6}
      cache_from:
        - slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmdbd"]
    container_name: slurmdbd
    hostname: slurmdbd
    environment:
      MYSQL_USER: ${MYSQL_USER:-slurm}
      MYSQL_PASSWORD: ${MYSQL_PASSWORD:-password}
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - var_log_slurm:/var/log/slurm
    expose:
      - "6819"
    depends_on:
      mysql:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmdbd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  slurmctld:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmctld"]
    container_name: slurmctld
    hostname: slurmctld
    privileged: true
    working_dir: /data
    environment:
      ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-}
      GPU_COUNT: ${GPU_COUNT:-1}
      SSH_ENABLE: ${SSH_ENABLE:-false}
    volumes:
      - etc_munge:/etc/munge:z
      - etc_slurm:/etc/slurm:z
      - slurm_jobdir:/data:z
      - var_log_slurm:/var/log/slurm:z
      - ${SSH_AUTHORIZED_KEYS:-/dev/null}:/tmp/authorized_keys_host:ro,z
    ports:
      - "${SSH_PORT:-3022}:22"
    expose:
      - "6817"
    depends_on:
      slurmdbd:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "scontrol ping"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  slurmrestd:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmrestd"]
    container_name: slurmrestd
    hostname: slurmrestd
    privileged: true
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - var_log_slurm:/var/log/slurm
    ports:
      - "6820:6820"
    expose:
      - "6820"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "test -S /var/run/slurmrestd/slurmrestd.socket"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  c1:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmd"]
    container_name: c1
    hostname: c1
    working_dir: /data
    privileged: true
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - slurm_jobdir:/data
      - var_log_slurm:/var/log/slurm
    expose:
      - "6818"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  c2:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmd"]
    container_name: c2
    hostname: c2
    working_dir: /data
    privileged: true
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - slurm_jobdir:/data
      - var_log_slurm:/var/log/slurm
    expose:
      - "6818"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  c3:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmd"]
    container_name: c3
    hostname: c3
    working_dir: /data
    privileged: true
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - slurm_jobdir:/data
      - var_log_slurm:/var/log/slurm
    expose:
      - "6818"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  c4:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmd"]
    container_name: c4
    hostname: c4
    working_dir: /data
    privileged: true
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - slurm_jobdir:/data
      - var_log_slurm:/var/log/slurm
    expose:
      - "6818"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  # GPU compute node (NVIDIA)
  # Requires: GPU_ENABLE=true in .env and nvidia-container-toolkit on host
  g1:
    image: slurm-docker-cluster:${SLURM_VERSION:-25.11.2}
    init: true
    command: ["slurmd"]
    container_name: g1
    hostname: g1
    working_dir: /data
    privileged: true
    profiles: ["gpu"]
    volumes:
      - etc_munge:/etc/munge
      - etc_slurm:/etc/slurm
      - slurm_jobdir:/data
      - var_log_slurm:/var/log/slurm
    expose:
      - "6818"
    depends_on:
      slurmctld:
        condition: service_healthy
    networks:
      - slurm-network
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: ${GPU_COUNT:-1}
              capabilities: [gpu, compute, utility]
    healthcheck:
      test: ["CMD-SHELL", "pidof slurmd"]
      interval: 10s
      timeout: 5s
      retries: 3
      start_period: 20s

  # Optional Elasticsearch for job completion logging
  # Start with: docker compose --profile monitoring up -d
  #   or with: make up-with-monitoring
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:9.3.0
    profiles: ["monitoring"]
    container_name: elasticsearch
    hostname: elasticsearch
    environment:
      - discovery.type=single-node
      - xpack.security.enabled=false
      - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data
    expose:
      - "9200"
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:9200/_cluster/health"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 30s

  # Kibana for visualizing Elasticsearch job completions
  kibana:
    image: docker.elastic.co/kibana/kibana:9.3.0
    profiles: ["monitoring"]
    container_name: kibana
    hostname: kibana
    environment:
      - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
    ports:
      - "5601:5601"
    depends_on:
      elasticsearch:
        condition: service_healthy
    networks:
      - slurm-network
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:5601/api/status"]
      interval: 10s
      timeout: 5s
      retries: 5
      start_period: 60s

volumes:
  etc_munge:
  etc_slurm:
  slurm_jobdir:
  var_lib_mysql:
  var_log_slurm:
  elasticsearch_data:

networks:
  slurm-network:
    driver: bridge

Ref:
[1] https://docs.docker.com/engine/containers/multi-service_container/

@Future-Outlier

Copy link
Copy Markdown
Member

close this PR due to #62390 (comment)

if you think this PR should be accepted, plz let us know your thought.

Future-Outlier added a commit to Future-Outlier/ray that referenced this pull request May 8, 2026
- Drop the imprecise "Docker's built-in --init" wording; --init is a flag
  that injects tini, not an init process itself.
- Replace the unverifiable claim about kernel signal delivery to zombies
  with the documented fact that only waitpid(2) removes a zombie from the
  process table (cited from wait(2)).
- Add inline citations to wait(2), signal(7), and the psutil source for
  wait_pid_posix's /proc/<pid> polling fallback (which is what makes
  ray stop classify zombies as still alive).
- Link the SIGKILL escalation to its actual call site in
  python/ray/scripts/scripts.py.
- Add tini and dumb-init repository references with their stated purpose
  (zombie reaping; dumb-init also handles Linux's PID 1 signal special
  case).
- Group References by topic: Linux semantics, container init runtimes,
  ray stop tooling, and PR ray-project#62591 discussion.

Signed-off-by: Future-Outlier <[email protected]>
MengjinYan pushed a commit that referenced this pull request May 12, 2026
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Contributed by the community core Issues that should be addressed in Ray Core go add ONLY when ready to merge, run all tests unstale A PR that has been marked unstale. It will not get marked stale again if this label is on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Core] Symmetric run raise error when terminating

4 participants