Skip to content
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

Bug: deadline job trace-schedule errors while job is running #524

Open
joel-wong-aws opened this issue Nov 29, 2024 · 0 comments
Open

Bug: deadline job trace-schedule errors while job is running #524

joel-wong-aws opened this issue Nov 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@joel-wong-aws
Copy link
Contributor

Describe the bug

When running deadline job trace-schedule on a currently running job, I received the following error:

Getting the job...
Getting all the sessions for the job...
Getting all the session actions for the job...
Getting all the steps and tasks for the job...  [####################################]  100%
Processing the trace data...
The AWS Deadline Cloud CLI encountered the following exception:
'endedAt'
Traceback (most recent call last):
  File "C:\Users\test\Documents\GitHub\deadline-cloud\.venv\Lib\site-packages\deadline\client\cli\_common.py", line 54, in wraps
    func(*args, **kwargs)
  File "C:\Users\test\Documents\GitHub\deadline-cloud\.venv\Lib\site-packages\deadline\client\cli\_groups\job_group.py", line 885, in job_trace_schedule
    "ts": time_int(session["endedAt"]),

Expected Behaviour

deadline job trace-schedule is only intended to only run for completed, successful jobs. We should document the help text to clarify this and also improve error handling to be more clear about the reason for the failure.

Current Behaviour

An error occurred.

Reproduction Steps

Submit a job. While the job is running, run deadline job trace-schedule

Environment

At minimum:

  1. Operating system: (e.g. Windows Server 2022; Amazon Linux 2023; etc.): Windows 10 22H2
  2. Output of python3 --version: Python 3.12.7
  3. Output of deadline --version: 0.49.2
  4. If this is from a version installed by the Deadline Cloud Submitter installer, then what version of the submitter installer? N/A

Please share other details about your environment that you think might be relevant to reproducing the bug.

@joel-wong-aws joel-wong-aws added bug Something isn't working needs triage A new report that needs a first look labels Nov 29, 2024
@joel-wong-aws joel-wong-aws removed the needs triage A new report that needs a first look label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant