philipdeegan / jobq Goto Github PK
View Code? Open in Web Editor NEWC++14 Cross platform lockless job running
License: BSD 3-Clause "New" or "Revised" License
C++14 Cross platform lockless job running
License: BSD 3-Clause "New" or "Revised" License
jobq === C++ lockless job runner How to use: JOBQ_HOME=$PWD jobq & echo $! > pid cp res/test j/p/.test mv j/p/.test j/p/test sleep 10 ls j/f kill -9 $(cat pid) rm pid License : BSD Caveats: Piping or && or || are not supported. See ./res/test for how to connect commands Job file format OPTIONAL pre - sanity checks, non 0 exit code = fail YES env - environment variables for run command YES log - tail log for duration of cmd YES dir - directory to run in YES Default: $JOBQ_HOME/j/p/<JOB> cmd - operation command NO [ { "pre" : [ "" ], "env" : [ { "ENV" : "VAR" } ], "log" : "~/.bash_history", "dir" : "~/" "cmd" : "ls" }, { "pre" : [ "" ], "env" : [ { "ENV" : "VAR" } ], "log" : "~/.bash_history", "cmd" : "ls" } ] Directory structure: $JOBQ_HOME/j/p : pending - new jobs $JOBQ_HOME/j/e : error - failed jobs $JOBQ_HOME/j/r : running - currently operating jobs $JOBQ_HOME/j/f : pending - finished jobs New job file "test", when run without errors. becomes $JOBQ_HOME/j/f/test.tar.gz Containing all out/err/log for each command test -> 1 -> out # output from command 1 -> 2 -> out # output from command 2 -> test # copy of original json Error files have the exception output appended to the command in the json file. Switches Key _JOBQ_BREAK_ON_ERROR_ Type bool Default 1 Description if true job stops and no further commands are executed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.