Skip to main content
Version: 2026.03

Jobs

Data types for job execution, status tracking, and agent assignment.

info

All data types support standard serialization methods (to_json, from_json, to_dict, from_dict, to_str) which are omitted from the tables below.

Job

Represents a job that runs a function on a model and produces a file result.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
fileFile
commentsList[Comment]
archive_status_historyList[ResourceArchiveStatus]
created_by_idstr
functionFunctionVersion
assigned_agent_idOptional[str]
agent_idOptional[str]
tenant_idOptional[str]
model_idOptional[str]
status_historyOptional[List[JobStatus]]

Methods:

NameDescription
poll_jobPoll the job until it reaches a terminal state.
update_propertiesUpdate one or more metadata fields on the underlying file.
update_descriptionUpdate the file’s description.
update_display_nameUpdate the file’s display name.
update_external_identifierUpdate the file’s external identifier.
update_version_nameUpdate the file’s version name.
read_bytesRead and return the raw byte contents of the associated file revision.
read_textRead the contents as decoded text.
copy_toCopy the contents to a local file.
read_jsonParse the contents as JSON.
cleanup_cacheClean up cached files if they exist.
get_cache_statsGet filesystem cache statistics.
create_accessCreate a new access relationship for a subject by ID.
create_access_by_emailCreate a new access relationship for a subject by email.
update_accessUpdate an existing access relationship for a subject.
remove_accessRemove an existing access relationship.
list_accessList all access relationships for this resource.
archiveArchive the current item using the client’s archive method for this resource type.
restoreRestore the current item using the client’s restore method for this resource type.

JobStatus

Represents a status update for a job.

Attributes:

NameTypeDescription
idstr
createddatetime.datetime
job_idstr
nameJobStatusName
created_by_idOptional[str]
messageOptional[str]
agent_idOptional[str]

JobStatusName

Attributes:

NameTypeDescription
CREATED
PENDING
CLAIMED
VALIDATING
RUNNING
UPLOADING
COMPLETED
FAILED
CANCELED
UNKNOWN

JobStatusMessage

Attributes:

NameTypeDescription
messagestr

NewJobAssignedAgent

Attributes:

NameTypeDescription
agent_idstr

NoJobResponse

Attributes:

NameTypeDescription
messagestr

ResponseGetJobForAgent

Attributes:

NameTypeDescription
anyof_schema_1_validatorOptional[Job]
anyof_schema_2_validatorOptional[NoJobResponse]
actual_instanceOptional[Union[Job, NoJobResponse]]
any_of_schemasSet[str]

Methods:

NameDescription
actual_instance_must_validate_anyof

NoOpResponse

Attributes:

NameTypeDescription
statusstr
messagestr

PageJob

A paginated response object for listing jobs.