app.model.StatusResponse

This module defines the data models for the status of a compile request. It provides classes to model progress, status, and associated timestamps.

Module Contents

class app.model.StatusResponse.StatusType

Enumeration of possible status values.

IN_PROGRESS = 'in progress'

The operation is still in progress

FAILED = 'failed'

The operation failed

COMPLETED = 'completed'

The operation completed successfully

class app.model.StatusResponse.Progress(/, **data: Any)

Models the progress of a compile request.

Parameters:

data (Any)

percentage: int = None

Progress percentage between 0 and 100.

currentStep: str

Step that is currently executing.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class app.model.StatusResponse.StatusBase(/, **data: Any)

Models the status of a process.

Parameters:

data (Any)

uuid: uuid.UUID

Id of the operation represented by this status.

createdAt: datetime.datetime

When this operation started.

progress: Progress

Progress of this operation.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class app.model.StatusResponse.CreatedStatus(/, **data: Any)

Models the status of a running operation.

Parameters:

data (Any)

completedAt: None = None

This operation is not completed yet.

result: None = None

The operation does not have a result yet.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class app.model.StatusResponse.SuccessStatus(/, **data: Any)

Models the status of a completed operation.

Parameters:

data (Any)

completedAt: datetime.datetime

When this operation completed successfully.

result: str

Location of the result of this operation.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class app.model.StatusResponse.FailedStatus(/, **data: Any)

Models the status of a failed operation.

Parameters:

data (Any)

completedAt: None = None

The operation did not complete (successfully).

result: app.model.exceptions.LeqoProblemDetails

Machine-readable error information.

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].