sjqjobrunner

Crates.iosjqjobrunner
lib.rssjqjobrunner
version0.2.7
sourcesrc
created_at2022-08-17 13:23:20.024682
updated_at2022-08-19 19:13:18.732532
descriptionsjqjobrunner
homepage
repositoryhttps://github.com/shenjiangqiu/jobrunner
max_upload_size
id647428
size18,726
Jiangqiu Shen (shenjiangqiu)

documentation

README

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;"
Commit count: 16

cargo fmt