Giter Club home page Giter Club logo

workload-manager's Introduction

Workload project

This project consists in storing jobs in a database and execute them through time.

Usage

  • Python 2.7

  • Conda

  • SQLite

  • git

Installation instructions

git clone [email protected]:giovannirescia/workload-manager.git

conda create --name workload python=2.7 ipykernel

pip install -r requirements.txt

Set up

Run the next commands from inside the project's dir, i.e., workload-manager.

  1. Instantiate settings.py.template if you want to customize some paths, otherwise just run cp settings.py.template settings.py

  2. Create a directory for the database mkdir data

  3. Run python scripts/populate.py to add some Jobs to be executed (these are just test examples)

  4. Set the PYTHONPATH so it can find the project's modules: set PYTHONPATH=$PYTHONPATH:<path_to_the_project>, eg, if your project is located in /Users/sarunas/my_projects/workload-manager then the PYTHONPATH setting will be set PYTHONPATH=$PYTHONPATH:/Users/sarunas/my_projects/workload-manager

Note: the step 4 nees to be done each time a bash or shell terminal is opened. To avoid this step every time, just add the line set PYTHONPATH=$PYTHONPATH:<path_to_the_project>, instantiated with a concrete path to the project of course, to the end of your ~/.bashrc or ~/.bash_profile file, then do source ~/.bashrc (or source ~/.bash_profile) and that's all.

Usage

Just run python scripts/worker.py to select a queued job from the database and execute it.

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.