Skip to content

RESTful API

mfoo edited this page May 1, 2013 · 4 revisions

Enqueue a new job

Request:

{
    "worker_type" : "com.example.ExampleWorker",
    "params" : {
         "key1" : "Value 1",
         "key2" : "Value 2"
    }
}

Response:

{
"enqueued_at" : "2013-03-23T12:13:14+00:00",
"worker_type" : "com.example.ExampleWorker",
"id" : 2,
    "params" : {
         "key1" : "Value 1",
         "key2" : "Value 2"
    },
"progress" : 0.5 // 0 <= progress <= 1       
}

Clone this wiki locally