linuxserver / davos

Web-based FTP automation for Linux servers.
MIT License
166 stars 15 forks source link

Allow to run on certain times #26

Open bo0tzz opened 6 years ago

bo0tzz commented 6 years ago

I've been happily using Davos for several months now. However, when it runs it clogs up my internet connection entirely. I would like to see an option to allow Davos to only run within a certain timeframe, so I could allow it to download only at night when I'm not using the internet anyways.

bo0tzz commented 6 years ago

I've done a bit of digging - from what I can tell the way to change this with little to no restructuring to the codebase would be to use the Quartz library. Apart from the web frontend and models, I believe the only significant change in the codebase would be to ScheduleExecutor.java, wrapping the ScheduledExecutorService#scheduleAtFixedRate() calls into a Quartz job. If the maintainer likes this change but does not have time to work on it I would be happy to work on it myself.

JoshStark commented 6 years ago

Having a cron schedule was something I’d have quite liked to do. Alas my free time is drying up a bit now so if you fancy giving it a go, please do. I can have a look and create a PR if needed.

bo0tzz commented 6 years ago

Unfortunately my time has recently also started drying up - but I'll put this on my list of things to do!