buildgrid.server.scheduler.events module
- class buildgrid.server.scheduler.events.JobEventModel(**extra_data: Any)
Bases:
BaseModel
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobCreated(**extra_data: Any)
Bases:
JobEventModel
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.NewOperation(*, operation_name: str, total_operation_count: int, **extra_data: Any)
Bases:
JobEventModel
- operation_name: str
- total_operation_count: int
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobAssigned(*, worker_name: str, assignment_strategy: str, time_in_queue: int, **extra_data: Any)
Bases:
JobEventModel
- worker_name: str
- assignment_strategy: str
- time_in_queue: int
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobCompleted(*, worker_name: str | None, status: int, duration: float | None, **extra_data: Any)
Bases:
JobEventModel
- worker_name: str | None
- status: int
- duration: float | None
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobOperationCancelled(*, worker_name: str | None, operation_name: str, cancelled_operation_count: int, total_operation_count: int, **extra_data: Any)
Bases:
JobEventModel
- worker_name: str | None
- operation_name: str
- cancelled_operation_count: int
- total_operation_count: int
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobCancelled(*, worker_name: str | None, **extra_data: Any)
Bases:
JobEventModel
- worker_name: str | None
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobRetried(*, attempt_number: int, max_attempts: int, **extra_data: Any)
Bases:
JobEventModel
- attempt_number: int
- max_attempts: int
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class buildgrid.server.scheduler.events.JobProgressUpdate(*, timestamp_name: str, worker_name: str, **extra_data: Any)
Bases:
JobEventModel
- timestamp_name: str
- worker_name: str
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].