28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
name: content-ingestor
|
|
description: V4 worker — pulls photos newest-first from mac-sync (macsync.photos + MinIO mac-sync bucket), classifies each via @model-boss vision (/v1/vision/score), and lands them as content_assets via platform.api on a configurable ~1-week offset (hot first, gaps backfilled from stocked). Health on black:3825.
|
|
type: service
|
|
category: worker
|
|
version: 0.1.0
|
|
|
|
platforms:
|
|
black:
|
|
os: linux
|
|
host: 10.0.0.11
|
|
environment: production
|
|
services:
|
|
worker:
|
|
type: pm2
|
|
process: content-ingestor
|
|
port: "3825"
|
|
description: Photo ingest + classification worker (NestJS)
|
|
start:
|
|
path: ~/Code/@projects/@cocottetech/@platform/codebase/@features/content-ingestor
|
|
script: deploy/deploy-black.sh
|
|
stop:
|
|
path: ~/Code/@projects/@cocottetech/@platform/codebase/@features/content-ingestor
|
|
script: "ssh 10.0.0.11 'pm2 stop content-ingestor'"
|
|
status:
|
|
command: "ssh 10.0.0.11 'curl -sf http://localhost:3825/health > /dev/null && echo ok || echo stopped'"
|
|
type: http
|
|
logs:
|
|
command: "ssh 10.0.0.11 'pm2 logs content-ingestor --lines 100 --nostream'"
|