Clever/cron-admin

Name: cron-admin

Owner: Clever

Description: Web interface and API for managing a cron table stored in a database.

Created: 2015-12-30 17:45:11.0

Updated: 2018-05-24 00:45:51.0

Pushed: 2018-05-24 00:45:50.0

Homepage: null

Size: 817

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Cron Admin

Web interface and API for managing a cron table stored in a database. For details on cron times and conventions see this reference.

API Endpoints
GET: /active-functions

Returns a list of distinct job functions which are actively scheduled.

GET: /jobs

Query param:

Returns a list of all jobs associated with the given function.

POST: /jobs

Posts a new, active job.

Body params:

400 errors occur when:

DELETE: /jobs/{job_id}

Removes job from the database.

PUT: /jobs/{job_id}

Update the job with new values.

Body params (all required):

400 errors occur when:

Web interface

The web interface is a single smooth page powered by React.

Active Jobs (Home)

Displays your active functions with an input bar for directly going to an existing or new function's details page.

Job Details

Displays active/inactive jobs with their cron times and payloads. The interface makes it simple and easy to:

Running Cron Admin

To run Cron Admin, you must be using Go 1.5. To start the http server simply run

O_URL=<URL> make run

(by default the envvar PORT=80, for local development you might try setting PORT=5011). For local development and testing it's recommended to spin up a local mongo instance, via the command mongod, by which you can set MONGO_URL=localhost. Tests by default expect a mongo instance at localhost.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.