INNER CODE UNIT · Python
_log_history
MichielMe/fastscheduler · src/fastscheduler/main.py:252
def _log_history(
self,
job_id: str,
func_name: str,
status: JobStatus,
error: Optional[str] = None,
run_count: int = 0,
retry_count: int = 0,
execution_time: Optional[float] = None,
):
"""Log job events to history."""
history_entry = JobHistory(
job_id=job_id,
func_name=func_name,
status=status.value,
timestamp=time.time(),
error=error,
run_count=run_count,