Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 
 
 

README.md

cljockwork

A REST API for cron4j, written in Clojure. Live demo at http://cljockwork.oliy.co.uk

Getting started

git clone https://github.com/oliyh/cljockwork.git
lein run

Open a browser and visit http://localhost:8080 for a demo

API

Basic scheduler control

GET http://localhost:8080/status
POST http://localhost:8080/stop
POST http://localhost:8080/start

Viewing tasks

GET http://localhost:8080/tasks/
GET http://localhost:8080/tasks/:id

Adding, removing and validating tasks

POST http://localhost:8080/tasks/validate {:desc "Task description" :schedule "* * * * *" :method :get :endpoint "http://path/to/endpoint"}
PUT http://localhost:8080/tasks/add {:desc "Task description" :schedule "* * * * *" :method :get :endpoint "http://path/to/endpoint"}
DELETE http://localhost:8080/tasks/:id/remove

Pausing and activating tasks

POST http://localhost:8080/tasks/:id/pause
POST http://localhost:8080/tasks/:id/activate

Extending

Task actions may be extended by participating in the cljockwork.scheduler/hit-endpoint multimethod.

License

Distributed under the Eclipse Public License, the same as Clojure.

About

A REST API for cron4j, written in Clojure

Resources

Releases

No releases published
You can’t perform that action at this time.