Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FR] Disable all automated tasks during peek hours #406

Open
007-mark opened this issue Oct 8, 2024 · 3 comments
Open

[FR] Disable all automated tasks during peek hours #406

007-mark opened this issue Oct 8, 2024 · 3 comments
Assignees

Comments

@007-mark
Copy link

007-mark commented Oct 8, 2024

Is your feature request related to a problem? Please describe.

  • Some internet providers set download limits during peek hours.
  • It would be nice if bandwidth was only used when nothing and nobody else is using the internet. Not everyone has a fast internet connection.

Describe the solution you'd like

  • Disable downloading any media during a specified time period (except if manually forced).
  • Add more options to the scheduler e.g. run daily / weekly / monthly at a specified time.

Describe alternatives you've considered

  • Create a cronjob to start and stop the docker container daily. (not very user friendly)
  • Disconnect the docker container from the internet daily. (seems to be the only reliable solution)
  • Create a user script to cancel all downloads individually, depending on the current time. This doesn't disable indexing though and is this really a good idea?
  • Send automated http requests to the web server to disable and reenable every source every day. (terrible)
  • Fiddle with the database daily. (terrible)
  • Only create new tasks in the middle of the night, hoping they will continue to run only at night which they probably won't.
@kieraneglin
Copy link
Owner

Hey there! Thanks for the report (:

I'm not sure if/how this would fit in to the current downloading paradigm, but I'll look into it! Do you have any examples of other apps that do this that I can look into for inspiration?

@007-mark
Copy link
Author

Hi,

Thank you for your reply!

I don't really know how to advise you since I don't know Elixir. What I can say is that I really like what you have created. All I can think of for now is to override job intervals to 'hourly' and skip tasks when needed. That should be fairly easy to implement, not break backward compatibility nor generate a huge overload. If that is an option, then a from and an until time interval field is all the web interface really needs. If set, these jobs run hourly but don't really do anything most of the time. Not the most elegant solution, I agree.

I can't really come up with good free web based examples for you to look at, qBittorrent allows you to define max time based upload and download speeds, But that's a lot more complicated to achieve. I guess a bit overkill though youtube might like lower download speeds.

Thank you for all the work you already have put into this project.

Nicely done!

@kieraneglin
Copy link
Owner

Thank you for the update! I just wanted to let you know that I'll be (mostly) out of cell service for just over a week starting tomorrow. But I'll keep thinking about this and see what I can come up with once I'm back!

@kieraneglin kieraneglin changed the title Disable all automated tasks during peek hours [FR] Disable all automated tasks during peek hours Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants