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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Web interface and API for managing a cron table stored in a database. For details on cron times and conventions see this reference.
/active-functions
Returns a list of distinct job functions which are actively scheduled.
/jobs
Query param:
Returns a list of all jobs associated with the given function.
/jobs
Posts a new, active job.
Body params:
400 errors occur when:
/jobs/{job_id}
Removes job from the database.
/jobs/{job_id}
Update the job with new values.
Body params (all required):
400 errors occur when:
The web interface is a single smooth page powered by React.
Displays your active functions with an input bar for directly going to an existing or new function's details page.
Displays active/inactive jobs with their cron times and payloads. The interface makes it simple and easy to:
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.