API - Version 2‎ > ‎

POST /jobs

Enqueues a job to the be processed.

PARAMETERS

  • code_name: code to execute
  • payload: job payload data in json format. This is what will be given to the worker when executed.
  • priority: 0 to 2.
  • timeout: to explicitly set the timeout (default 3600 seconds, maximum 3600 seconds).

REQUEST

POST /2/projects/4e71843298ea9b6b9f000004/jobs?oauth=jTxYQDmMx5ZtVeZBT8jVx6oJDLw HTTP/1.1

User-Agent: SimpleWorker Ruby Client

Content-Length: 245

Accept: application/json

Accept-Encoding: gzip, deflate

Content-Type: application/json


{"payload":[{"class_name":"hello","access_key":"hello"}],"class_name":"hello","name":"hello","options":{},"token":"jTxYQDmMx5ZtVeZBT8jVx6oJDLw","api_version":2,"version":2,"timestamp":"2011-09-29T01:40:39Z","oauth":"jTxYQDmMx5ZtVeZBT8jVx6oJDLw"}


Comments