9 releases

0.2.7 Aug 19, 2022
0.2.6 Aug 19, 2022
0.1.2 Aug 17, 2022

#4 in #addr

Download history 4/week @ 2024-03-28 1/week @ 2024-04-04 48/week @ 2024-07-04 7/week @ 2024-07-11

55 downloads per month

MIT license

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–15MB
~182K SLoC