nandyalu / trailarr

Trailarr is a Docker application to download and manage trailers for your Radarr and Sonarr libraries.
GNU General Public License v3.0
111 stars 7 forks source link

[Request] Allow me to configure scheduled task intervals #43

Closed rpschube closed 1 month ago

rpschube commented 1 month ago

Is your feature request related to a problem? Please describe. The "Download Missing Trailers" runs every hour, briefly taking up 30% of my CPU. Not a huge deal, but I don't need this happening every hour.

Describe the solution you'd like I would like to be able to set a minutes or hours value for the interval at which all of the scheduled tasks run. This would work similarly to the existing monitor interval setting:

image

Describe alternatives you've considered Keeping the container shut down and only starting it up it once a day for a single run of all it's scheduled tasks.

Additional context Everything else works great!

nandyalu commented 1 month ago

I would like to be able to set a minutes or hours value for the interval at which all of the scheduled tasks run. This would work similarly to the existing monitor interval setting

That is exactly how it works right now! App uses the same interval set in Monitor Interval for all tasks except for Image Refresh which runs every 6 hours.

rpschube commented 1 month ago

Hmm, I suppose then it's not working for me. I have the Monitor Interval setting set to 480 as you can see above. However the tasks seem to be running at their same default schedules.

image

The error in my Download Missing Trailers task run is just a bad path for an individual piece of media, nothing with the job itself.

nandyalu commented 1 month ago

Tasks are scheduled when app starts, changing them won't be applied immediately. A restart is needed to set new scheduled tasks with updated intervals.

That tells me, I need to add this to docs, and maybe show a warning or something that container restart is needed to take effect. Thanks for bringing it up!