Web interface and API for managing a cron table stored in a database. For details on cron times and conventions see this reference.
Returns a list of distinct job functions which are actively scheduled.
Query param:
- Function (Required and must be non-empty)
Returns a list of all jobs associated with the given function.
Posts a new, active job.
Body params:
- Function
- CronTime
- Workload
- TimeZone (optional, defaults to "America/Los_Angeles")
400 errors occur when:
- Function isn't provided or is empty
- CronTime isn't provided or is an invalid format
Removes job from the database.
Update the job with new values.
Body params (all required):
- Function
- IsActive
- CronTime
- Workload
- TimeZone
- Created (formatted as RFC3339)
400 errors occur when:
- Any of these fields are missing
- Function is the empty string
- CronTime is invalid
- Created cannot be parsed as RFC3339
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:
- Add a new job
- Deactivate/active an already existing job
- Delete a job
To run Cron Admin, you must be using Go 1.5. To start the http server simply run
MONGO_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.