INNER CODE UNIT · Python
execution_time
MichielMe/fastscheduler · src/fastscheduler/main.py:501
execution_time = time.time() - start_time
with self.lock:
self.stats["total_runs"] += 1
self._log_history(
job.job_id,
job.func_name,
JobStatus.COMPLETED,
run_count=job.run_count,
retry_count=job.retry_count,
execution_time=execution_time,
)
if not self.quiet:
logger.info(f"{job.func_name} completed ({execution_time:.2f}s)")
# Schedule next run AFTER successful execution