[Unit]
Description=Warm Redis cache for Nexus vehicle info
After=postgresql.service redis-server.service

[Service]
Type=oneshot
User=postgres
WorkingDirectory=/home/Autopartes
ExecStart=/usr/bin/python3 /home/Autopartes/scripts/warm_vehicle_cache.py --batch-size 10000 --ttl 7200
StandardOutput=append:/var/log/nexus-pos/cache_warm.log
StandardError=append:/var/log/nexus-pos/cache_warm.log
