Los scrapers y el analizador de imagenes llevaban cableada la ruta de despliegue de una maquina concreta. Ahora sale de una variable de entorno y, si no esta, se deduce de la ubicacion del propio fichero: el repo funciona donde lo clones sin editar nada. FLUJOS_DATOS_DIR raiz de datos para scrapers y comparacion FLUJOS_NOTICIAS_DIR scraper historico de medios HF_HOME cache de modelos de Hugging Face flujos-pipeline.service pasa a plantilla, igual que las de coconews.
27 lines
701 B
Desktop File
27 lines
701 B
Desktop File
[Unit]
|
|
Description=FLUJOS Pipeline Maestro (scraping → análisis → comparación)
|
|
After=network.target mongod.service
|
|
Requires=mongod.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=__USER__
|
|
WorkingDirectory=__INSTALL_DIR__/FLUJOS_DATOS
|
|
|
|
Environment=MONGO_URL=mongodb://localhost:27017
|
|
Environment=DB_NAME=FLUJOS_DATOS
|
|
Environment=HF_HOME=__INSTALL_DIR__/FLUJOS_DATOS/IMAGENES/model_cache
|
|
|
|
ExecStart=__INSTALL_DIR__/FLUJOS_DATOS/myenv/bin/python3 \
|
|
__INSTALL_DIR__/FLUJOS_DATOS/pipeline_maestro.py
|
|
|
|
# 12h máximo (análisis VLM en CPU puede tardar)
|
|
TimeoutStartSec=43200
|
|
Restart=no
|
|
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=flujos-pipeline
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|