Skip to content

[Job] Show logs for all tasks of a managed job #5400

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

DanielZhangQD
Copy link
Collaborator

@DanielZhangQD DanielZhangQD commented Apr 27, 2025

Fix #5399
Show logs for all tasks of a managed job

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)
    • Launch a managed job with 1 task

      • Job succeeds
    • Launch a managed job with multiple tasks

      • Job succeeds
      • Job fails in the middle task

Check the job logs and the controller logs including all the tasks.

  • All smoke tests: /smoke-test (CI) or pytest tests/test_smoke.py (local)
  • Relevant individual tests: /smoke-test -k test_name (CI) or pytest tests/test_smoke.py::test_name (local)
  • Backward compatibility: /quicktest-core (CI) or pytest tests/smoke_tests/test_backward_compat.py (local)

@DanielZhangQD DanielZhangQD marked this pull request as ready for review April 27, 2025 13:02
Comment on lines +554 to +555
task_ids = managed_job_state.get_all_task_ids(job_id)
for job_task_id in task_ids:
Copy link
Collaborator

Choose a reason for hiding this comment

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

How do people distinguish multiple tasks under a same job? Also, how do people find the previous log when the job has not finished yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Job] The managed job logs do not include the logs for all tasks
2 participants