digitalec / deemon

Monitor specified artists for new releases
GNU General Public License v3.0
174 stars 15 forks source link

[UNRAID] Task Scheduler inside the container? Shell is immediately closing. #105

Open Breakingx opened 6 months ago

Breakingx commented 6 months ago

Hello!

I stumbled upon this project by accident and am absolutly in love. Lidarr was extremly behind the releases of my favorite artist and deemon is just doing it's job.

My OS is Unraid. After setting everything up I noticed that the shell is closing instantly with the only output: "Container 1238012bdfsdf not running" -> something like that. So I wasn't able to add downloads or monitor artists.

I had to put the command "python3 -m deemon monitor X, Y, Z" inside the post arguments and had to restart the container for each command. That's okay. The process was easy: Monitor artists, Download Artists

But now I'm thinking about refreshing and downloading new releases. You mention in you documentation to run a cron job; but for unraid that's not possible. AFAIK you can't run and close dockers on schedules.

So my question is, if it would be possible to add a feature that runs inside the container that runs the jobs?

Best regards.

digitalec commented 6 months ago

@Breakingx I won’t lie, this is a great feature suggestion. However, I’m not very familiar with building docker containers. If someone more familiar is interested in getting this done, I’m open to PRs.

digitalec commented 5 months ago

I've looked into this a bit more and have gotten more familiar with building Dockerfiles/containers. Containers are intended to run one application and then exit when finished. This request would require the addition of something such as supercronic to run in the foreground, calling deemon to run a schedule. I'm not opposed to this, if that's what everyone wants, but it would be a big difference from the current implementation.

I guess what I'm saying is that if people want this change implemented, let me know here.