def _parse_cron_schedule(self, cron_schedule: str) -> dict:
        """Parse a cron schedule string into kwargs for APScheduler"""
        parts = cron_schedule.split()

        # Handle both 5-part and 6-part cron expressions
        if len(parts) == 6:
            # With seconds field
            second, minute, hour, day, month, day_of_week = parts
            return {
                "second": second,
                "minute": minute,
                "hour": hour,
                "day": day,
                "month": month,
                "day_of_week": day_of_week,
            }
        elif len(parts) == 5:
            # Standard cron (no seconds)
            minute, hour, day, month, day_of_week = parts
            return {
                "minute": minute,
                "hour": hour,
                "day": day,
                "month": month,
                "day_of_week": day_of_week,
            }
        else:
            logger.warning(
                f"Invalid cron format: {cron_schedule}. Using defaults."
            )
            return {"hour": 3, "minute": 0}
Parse a cron schedule string into kwargs for APScheduler
py/core/main/services/maintenance_service.py