NERSC / NERSC/sfapi_client

Job Not Found Error

Open
#93 3 comments 0 reactions 1 assignee View on GitHub

@cjh1 is already working on this.

Since Dec 16, 2024.

Dominant language
Python
Stars
14
Forks
6
PR merge metrics
No merged PRs in 30d

Description

I am encountering an issue where submit_job() raises a Job Not Found error, even though job IDs are generated, successfully scheduled, and run on Perlmutter. This complicates an automated workflow I am developing where we need to wait for the results of one task before starting the next one.

From my script job_controller.py:

try:
  logger.info("Submitting reconstruction job script to Perlmutter.")
  job = self.client.perlmutter.submit_job(job_script)
except Exception as e:
  logger.error(f"Failed to submit or complete reconstruction job: {e}")

Error log from the exception:

13:11:27.498 | INFO    | orchestration.flows.bl832.job_controller - Submitting reconstruction job script to Perlmutter.
13:12:03.894 | ERROR   | orchestration.flows.bl832.job_controller - Failed to submit or complete reconstruction job: Job not found: 33821565

It seems like this could arise from one of the SfApiErrors raised by the submit_job() function defined in sfapi_client/_sync/compute.py

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.