Skip to content
Pasqal Documentation

Get Job

GET
/api/v2/jobs/{job_id}

Retrieve a job by its ID.

Args: AuthenticatedComputeAny: The authentication dependency, ensuring the user is authenticated and has the necessary permissions

job: GetJobByIdAndPerformAccessCheck access the job by its ID and perform
access checks. The 'deferred_fields' parameter is specified to exclude the
'result' attribute from being loaded from the database.

Returns: NonPaginatedResponse[ProducedFullJobResponse]: A non-paginated response containing the details of the job, excluding the result attribute

Parameters

Path Parameters

job_id
required
Job Id
string format: uuid

Responses

200

Successful Response

NonPaginatedResponse[ProducedFullJobResponse]

Represents a response with either a list of items or a single item in a single page.

Generic Parameters: - A (TypeVar): The type bound to this class, which can be a single BaseModel, a list of BaseModels, or None.

Usage: - To respond with an unpaginated list of FooResponse items from an API endpoint, ensure that your function returns NonPaginatedResponse[List[FooResponse]].

- To respond with a single `FooResponse` item from an API endpoint,
  make sure that your function returns `NonPaginatedResponse[FooResponse]`
  and that Python recognizes it.
object
data
ProducedFullJobResponse

Response to a request for a job.

This schema defines all the fields that can be publicly shared by the API.

object
id
required
Id
string format: uuid
parent_id
Parent Id
string format: uuid
status
required
JobStatus

An enumeration.

string
Allowed values: PENDING RUNNING DONE ERROR CANCELED
runs
required
Runs
integer
batch_id
required
Batch Id
string format: uuid
project_id
required
Project Id
string format: uuid
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
start_timestamp
Start Timestamp
string format: date-time
end_timestamp
End Timestamp
string format: date-time
variables
Variables
object
errors
Errors
Array<string>
logs_link
Logs Link
string
progress
Progress
integer
<= 100
sequence
Sequence
string
slurm_job_id
Slurm Job Id
string

422

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string