https://github.com/iamolegga/thro
https://github.com/iamolegga/thro
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iamolegga/thro
- Owner: iamolegga
- License: mit
- Created: 2021-08-18T21:35:03.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-19T18:54:24.000Z (about 4 years ago)
- Last Synced: 2025-01-14T00:32:35.515Z (9 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thro
`thro` is a cli app that throttles passed command when the same command with the same args is already running.
Main purpose is to use it for throttling apps with long duration that can be called frequently, example:
```shell
#!/bin/shwhile true
do
inotifywait -e modify -e create -e delete -e attrib -r /myfolder/
./thro rclone -v sync /myfolder/ myprovider:/myfolder/ &
done
```In this example several parallel calls will be throttled to one subcommand call and only one more deferred subcommand
call when the first one will be finished