Giter VIP home page Giter VIP logo

scheduler-commander's Introduction

scheduler-commander

Experimental command line interface to a persistent rufus-scheduler process.

Schedulables can be scheduled, removed, paused, and resumed without starting the main process.

Requirements

ruby or jruby or anything that rufus-scheduler supports.

Usage

Starting the server

ruby run_job_server.rb

Connecting to the control port

telnet localhost 2000

Help

help
> Valid commands: list, add, delete, pause, resume, help, jobs

List schedulable jobs

jobs
> +--------+---------------------+
| Work   | Displays some text. |
| Looper | Displays some text. |
+--------+---------------------+

Add instance of a job

add work_job every 5s Work
> Added job work_job
add loop_job in 5s Looper
> Added job loop_job

List scheduled jobs

list
> +----------+---------+----------+---------------------------+---------------------------+
| Name     | Status  | Interval | Last Run                  | Next Run                  |
+----------+---------+----------+---------------------------+---------------------------+
| work_job | running | 5s       | 2013-09-03 14:15:51 -0400 | 2013-09-03 14:15:56 -0400 |
| loop_job | running | 5s       | 2013-09-03 14:15:38 -0400 | 2013-09-03 14:15:38 -0400 |
+----------+---------+----------+---------------------------+---------------------------+

Add another instance of a job

add work_job_2 every 2s
> Added job work_job_2
list
> +------------+---------+----------+---------------------------+---------------------------+
| Name       | Status  | Interval | Last Run                  | Next Run                  |
+------------+---------+----------+---------------------------+---------------------------+
| work_job   | running | 5s       | 2013-09-03 14:20:36 -0400 | 2013-09-03 14:20:41 -0400 |
| loop_job   | running | 5s       | 2013-09-03 14:15:38 -0400 | 2013-09-03 14:15:38 -0400 |
| work_job_2 | running | 2s       | 2013-09-03 14:20:37 -0400 | 2013-09-03 14:20:39 -0400 |
+------------+---------+----------+---------------------------+---------------------------+

Delete job

delete work_job_2
> Deleted job work_job_2

Pause jobs

pause work_job
> Paused job work_job

Resume jobs

resume work_job
> Resumed job work_job

scheduler-commander's People

Contributors

dougeverly avatar

Watchers

James Cloos 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.