GetTrainingJobQueueContextResponse

class baseten.client.managementapi.GetTrainingJobQueueContextResponse(*, target_job_id, target_job_name=None, gpu_type, requested_gpus, submitted_at, released_at=None, pending_seconds=None, org_capacity=None, team_capacity=None, active_at_submit, pending_ahead_at_submit, events, events_window_end)

Bases: BaseModel

Parameters:
  • target_job_id (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Target Job Id', description='Hashid of the target training job')])

  • target_job_name (Annotated[str | None, FieldInfo(annotation=NoneType, required=True, title='Target Job Name', description="Target job's name")])

  • gpu_type (Annotated[str, FieldInfo(annotation=NoneType, required=True, title='Gpu Type', description='GPU type the target requested')])

  • requested_gpus (Annotated[int, FieldInfo(annotation=NoneType, required=True, title='Requested Gpus', description='GPUs the target requested (gpu_count * effective_node_count)')])

  • submitted_at (Annotated[AwareDatetime, FieldInfo(annotation=NoneType, required=True, title='Submitted At', description='When the job row was inserted (= API POST time)')])

  • released_at (Annotated[AwareDatetime | None, FieldInfo(annotation=NoneType, required=True, title='Released At', description="When the job's TRAINING_JOB_CREATED status was set, i.e. the moment it was released from PENDING. None if still PENDING.")])

  • pending_seconds (Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Pending Seconds', description='released_at - submitted_at in seconds. None if still PENDING.')])

  • org_capacity (Annotated[CapacityAtSubmit | None, FieldInfo(annotation=NoneType, required=True, description='Org-level cap for (org, gpu_type). None if no cap is configured.')])

  • team_capacity (Annotated[CapacityAtSubmit | None, FieldInfo(annotation=NoneType, required=True, description='Team-level cap for (team, gpu_type). None if no team cap is configured.')])

  • active_at_submit (Annotated[list[ActiveJobAtSubmit], FieldInfo(annotation=NoneType, required=True, title='Active At Submit', description='Jobs in the same (org, gpu_type) pool that were holding capacity at submitted_at')])

  • pending_ahead_at_submit (Annotated[list[PendingJobAheadAtSubmit], FieldInfo(annotation=NoneType, required=True, title='Pending Ahead At Submit', description="PENDING jobs in the same (org, gpu_type) pool that were ahead of the target in dequeue FIFO order at submitted_at (priority DESC then created ASC). These also block the target's release.")])

  • events (Annotated[list[QueueEvent], FieldInfo(annotation=NoneType, required=True, title='Events', description='Every status event in [submitted_at, events_window_end] for the target job, every job in active_at_submit, and every job in pending_ahead_at_submit, oldest first.')])

  • events_window_end (Annotated[AwareDatetime, FieldInfo(annotation=NoneType, required=True, title='Events Window End', description="released_at if set, else 'now' (events ongoing)")])

model_config = {}

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