pub async fn update(
    path: Path<u64>,
    json: Json<UpdateRequest>,
    data: Data<ApplicationState>
) -> impl Responder
Expand description

Handles PATCH /job/{job_id} requests. This endpoint allows a job’s status and/or output to be updated via a JSON request.

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
  • 409 - conflict, job not in state where updates allowed
  • 500 - unexpected internal error
  • 503 - Redis connection unavailable