max_tries: int
    hostname: str
    unixname: str
    job_id: Optional[int]
    pool: str
    pool_slots: int
    queue: str
    priority_weight: Optional[int]
    operator: str
    custom_operator_name: Optional[str]
    queued_dttm: Optional[str]
    queued_by_job_id: Optional[int]
    pid: Optional[int]
    executor_config: Any
    updated_at: Optional[datetime]
    external_executor_id: Optional[str]
    trigger_id: Optional[int]
    trigger_timeout: Optional[datetime]
    next_method: Optional[str]
    next_kwargs: Optional[dict]
    run_as_user: Optional[str]
    task: PydanticOperator
    test_mode: bool
    dag_run: Optional[DagRunPydantic]
    class Config:
        """Make sure it deals automatically with SQLAlchemy ORM classes."""
        from_attributes = True
        orm_mode = True  
        arbitrary_types_allowed = True
    def init_run_context(self, raw: bool = False) -> None: