kumoai.trainer.ArtifactExportJob#

class kumoai.trainer.ArtifactExportJob[source]#

Bases: KumoProgressFuture[ArtifactExportResult]

Represents an in-progress artifact export job.

__init__(job_id)[source]#
property id: str#

The unique ID of this export job.

result()[source]#

Returns the resolved state of the future.

Raises:

Exception – If the future is complete but in a failed state due to an exception being raised, this method will raise the same exception.

Return type:

ArtifactExportResult

future()[source]#

Returns the concurrent.futures.Future object wrapped by this future. It is not recommended to access this object directly.

Return type:

Future[ArtifactExportResult]

status()[source]#

Returns the status of a running export job.

Return type:

JobStatus

cancel()[source]#

Cancels a running export job.

Returns:

True if the job is in a terminal state.

Return type:

bool

attach(interval_s=4.0)#

Allows a user to attach to a running job and view its progress.

Parameters:

interval_s (float) – Time interval (seconds) between polls, minimum value allowed is 4 seconds.

Return type:

TypeVar(T)

done()#

Returns True if this future has been resolved with result(), or False if this future is still in-progress. Note that this method will return True if the future is complete, but in a failed state, and that this method will return False if the job is complete, but the future has not been awaited.

Return type:

bool