Module ocypod::handlers::job

source ·
Expand description

HTTP handlers for /job/* endpoints.

Structs

Functions

Handles DELETE /job/{job_id} requests. This endpoint deletes a job from the DB regardless of the state of execution it’s in.
Handles PUT /job/{job_id}/heartbeat requests. This endpoint updates the last heartbeat time for a job (heartbeat is used to detect jobs that have timed out).
Handles GET /job/{job_id} requests.
Handles GET /job/{job_id}/output requests. Gets the current output for a given job.
Handles PUT /job/{job_id}/output requests. Replaces the job’s output with given JSON.
Handles GET /job/{job_id}/status requests.
Handles PATCH /job/{job_id} requests. This endpoint allows a job’s status and/or output to be updated via a JSON request.