Technology moves fast! ⚡ Don't get left behind.🚶 Subscribe to our mailing list to keep up with latest and greatest in open source projects! 🏆


Subscribe to our mailing list

chronos-utils

Command line utilities for interacting with Airbnb Chronos

Subscribe to updates I use chronos-utils


Statistics on chronos-utils

Number of watchers on Github 34
Number of open issues 0
Average time to close an issue over 2 years
Main language Python
Average time to merge a PR 6 days
Open pull requests 0+
Closed pull requests 0+
Last commit over 5 years ago
Repo Created over 5 years ago
Repo Last Updated almost 2 years ago
Size 299 KB
Organization / Authormesosphere
Latest Releasev0.1.1
Contributors1
Page Updated
Do you use chronos-utils? Leave a review!
View chronos-utils activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Trendy new open source projects in your inbox! View examples

Subscribe to our mailing list

Evaluating chronos-utils for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

chronos-utils

Command line utilities for interacting with Airbnb Chronos. Check out the full reference below for all available commands.

First, a demonstration

This demonstrates creating jobs, deleting a single job, deleting all the jobs, and listing jobs from the command line.

$ ./chronos.py jobs --create 3
Created 3 job(s) on local Chronos

$ ./chronos.py jobs --list
+------------------+--------------+------------------------------------+
|       Name       |    Owner     |              Schedule              |
+==================+==============+====================================+
| JOB1386714810695 | rob@fake.com | R/2013-12-10T22:33:30.695273/PT24H |
+------------------+--------------+------------------------------------+
| JOB1386714810719 | rob@fake.com | R/2013-12-10T22:33:30.719465/PT24H |
+------------------+--------------+------------------------------------+
| JOB1386714810737 | rob@fake.com | R/2013-12-10T22:33:30.737307/PT24H |
+------------------+--------------+------------------------------------+

Showing all 3 job(s)

$ ./chronos.py jobs --delete JOB1386714810719
Deleted job named 'JOB1386714810719'.

$ ./chronos.py jobs --list
+------------------+--------------+------------------------------------+
|       Name       |    Owner     |              Schedule              |
+==================+==============+====================================+
| JOB1386714810695 | rob@fake.com | R/2013-12-10T22:33:30.695273/PT24H |
+------------------+--------------+------------------------------------+
| JOB1386714810737 | rob@fake.com | R/2013-12-10T22:33:30.737307/PT24H |
+------------------+--------------+------------------------------------+

Showing all 2 job(s)

$ ./chronos.py jobs --deleteall
Are you sure you want to delete ALL jobs? [yes/No] yes
Deleted ALL jobs. The slate is all clean.

$ ./chronos.py jobs --list
+------+-------+----------+
| Name | Owner | Schedule |
+======+=======+==========+
+------+-------+----------+

No jobs

Full Reference

chronos

Forward commands to other files in the directory. New commands should be added to the command description in this file.

./chronos.py -h
usage: chronos [-h] <command>

Supported chronos commands are:
  jobs      Create, destroy, and list jobs
  version   Print the chronos utils version

positional arguments:
  <command>   this is it, the command to execute

optional arguments:
  -h, --help  show this help message and exit

chronos-jobs

Create, destroy, and list jobs

./chronos.py jobs -h
usage: chronos-jobs [-h] [--hostname <host:port>] [-v]
                    (--create [<n>] | --createforest [<n>] | --delete <jobname> | --deleteall | --list | --run <jobname> | --runall)

optional arguments:
  -h, --help            show this help message and exit
  --hostname <host:port>
                        hostname and port of the Chronos instance (default:
                        localhost:8080)
  -v                    print verbose output
  --create [<n>]        create <n> sleep jobs (default: 1)
  --createforest [<n>]  create <n> sleep jobs, with random dependencies
                        (default: 1)
  --delete <jobname>    delete job with name <jobname>
  --deleteall           delete all jobs (this is serious business)
  --list                list all jobs
  --run <jobname>       run job with name <jobname>
  --runall              run all jobs (could be a lot of work)
chronos-utils list of languages used
chronos-utils latest release notes
v0.1.1 Forestation Zwei

Ensures --createforest creates unique job names across calls to the command.

v0.1.0 Forestation

Adds a new command called --createforest that generates dummy jobs with random dependencies to create a forest of dependent jobs.

v0.0.1 Initial Release

The first release of Chronos Command Line Utilities.

Other projects in Python