Skip to main content

Wait for reasonable load average

Project description

Woah

Woah is a script that you can wrap commands with, and it will wait until the load average is reasonable before running them.

Usage

Similar to nice, you just start your command with woah and everything after that will be run unchanged.

Say, if you have a lot of other things going on, and want your backup to wait for things to settle down...

woah tar -xvzf /tmp/foo.tar users/tim

Or you're running multiple things with xargs, but some are more expensive than others and you want to keep your machine somewhat responsive...

(cd /users; ls -d *) | xargs -P32 -n1 --no-run-if-empty woah tar /tmp/{} /users/{}

Bugs and such

https://github.com/thatch/woah

License

Apache 2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

woah-0.2.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

woah-0.2-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page