pub fn delete(
path: Path<u64>,
state: State<ApplicationState>
) -> Box<dyn Future<Item = HttpResponse, Error = Error>>
Expand description
Handles DELETE /job/{job_id}
requests. This endpoint deletes a job from the DB regardless of the
state of execution it’s in.
Generally intended to be called after a job has completed/failed, and clients have retrieved any data they need from it.
Running/queued jobs can be more gracefully removed by updating the job’s status to cancelled
.
Returns
- 204 - update successfully performed
- 400 - bad request, could not perform update with given JSON request
- 404 - not found error if no job with given
job_id
is found