9 releases
0.2.7 | Aug 19, 2022 |
---|---|
0.2.6 | Aug 19, 2022 |
0.1.2 | Aug 17, 2022 |
#9 in #addr
25 downloads per month
10KB
205 lines
jobrunner
a job runner client and server within limited cpu numbers
install
cargo install sjqjobrunner
usage:
- in server:
sjqjobrunner [-m max_cpu_num] [-b server_addr:port]
- in client:
sjqjobsender [-s server_addr:port] jobs..
- in client query the current status:
sjqjobnum [-s server_addr:port]
the server addr will be :::5233, in client, it will connect to ::1:5233 by default
example
- in server:
sjqjobrunner -m 12
- in client:
sjqjobsender "echo hello;sleep 10;echo done;" "echo job2;sleep 20;echo done;"
Dependencies
~6–14MB
~176K SLoC