get_job_status
Checks the batch queue status of the last submitted job in a CESM case directory by reading the CaseStatus log and querying the scheduler, returning job state and resource usage.
Instructions
Check the PBS/slurm batch queue status for the most recent job submitted from this case.
Reads the CaseStatus log to extract the job ID, then queries the scheduler. Returns job state (R=running, Q=queued, C=complete, F=failed) and resource usage.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| case_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |