decluttarr icon indicating copy to clipboard operation
decluttarr copied to clipboard

Schedule run as normal docker

Open markfaine opened this issue 7 months ago • 3 comments

Is it possible/could it be possible to just run this on a schedule, a cron or systemd timer to bring it up and when it's done it just exits? It doesn't seem to have a UI so it would be nice to not have to use cycles on it when it's not doing anything.

markfaine avatar May 03 '26 22:05 markfaine

Can you explain why "it would be nice" not to have to use cycles when it's not doing anything? It's a simple loop that goes into sleep until the next iteration.

ManiMatter avatar May 05 '26 15:05 ManiMatter

Can you explain why "it would be nice" not to have to use cycles when it's not doing anything? It's a simple loop that goes into sleep until the next iteration.

This may be solved by webui as to user there's no visibility on cycles

lolimmlost avatar May 07 '26 22:05 lolimmlost

I mean it's not a deal breaker or anything but I just try not to run containers that aren't doing anything. For example, with Kometa I run this via cron. It runs and when it's done it exits so it's only running when it's doing something.

docker run --rm --name kometa \
  --network proxy \
  -v /volume1/containers/docker/kometa/config:/config \
  -e PUID="${PUID}" \
  -e PGID="${PGID}" \
  -e TZ="${TZ}" \
  -e KOMETA_CONFIG="/config/config.yml" \
  -e KOMETA_RUN="True" \
  lscr.io/linuxserver/kometa:latest bash -c "python kometa.py --run --low-priority --no-report --no-missing"

markfaine avatar May 08 '26 23:05 markfaine