GithubHelp home page GithubHelp logo

lbatch's Introduction

lbatch

A very basic batch job scheduling tool.

Usage

lsub -n X -t Y -j job.sh

Launches a batch of Y instances of the script job.sh, running maximally X simultaneous processes. Each run calls the job script with with the job number [1,Y] as the only argument. The stdout for each run is written to job_{i}.lsub where {i} is the job number.

To monitor running batch jobs use

lstat

For example, to schedule a 100 run batch of test.sh, with only 2 simultaneous processes use

→ lsub -n 2 -t 100 -j test.sh

100 jobs requested for job script test.sh
lbatch: job test.sh submitted

→ lstat
test.sh: 0c, 2r, 98q. Submitted: Mon 16 Jul 2018 18:23:38 CEST, Updated Mon 16 Jul 2018 18:23:39 CEST. PID=5473

Subsequent calls to lsub will add new batch jobs to the queue, but they will not be executed until the previous batch is completed.

Cancelling jobs

Is done manually, by killing the associated lbatch-sh job and the running processes

Installation

Clone the repo and run

./install.sh

Warning

This is a very barebones scheduler, with lots of rough edges. Use at your own risk!

lbatch's People

Contributors

nhartland avatar

Stargazers

Andrew NS Yeow avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.