@See Jobs
Creates a job and persists in the database. It assigns a id to the new job, id is an UUID string. It returns a JSON object which contains the the job id.
A job does not get scheduled to run immediately. A background daemon, task-daemon, will poll the database intermittently to find new jobs. The daemon will then split the job in tasks. Tasks usually will correspond to a document. Tasks are ephemeral, not persisted in database, are created on etcd
.
Accept: application/json
Content-Type: application/json
ALL
, REFRESH
, ERROR
.
ALL
, will create new documents, update old ones from the specified source.
REFRESH
, will update old documents from the specified source.
ERROR
, will try to update old documents which failed to get previously.WIKIPEDIA
, GUTENBERG
, YOUTUBE
.true
, if the job is to be run periodically. false
, if the job is run once.true
, then this number is the number of days between two runs of the job. Default is 15. If sched is false
, then this value is ignored.Accept: application/json
Content-Type: application/json