# `Chatto.Admin.V1.AdminJobService`
[🔗](https://github.com/xtian/elixir-chatto/blob/v0.1.0/lib/chatto/generated/chatto_admin_v1_admin_job_service.ex#L3)

Administrative background-job inspection and recovery.

# `delete_job`

```elixir
@spec delete_job(Req.Request.t(), Chatto.Admin.V1.DeleteJobRequest.t()) ::
  {:ok, Chatto.Admin.V1.DeleteJobResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Deletes a failed job. Requires effective server.manage.
The work of the job is abandoned and cannot be retried later. Returns
FAILED_PRECONDITION when the job is not failed or changed after the caller
read it, and NOT_FOUND when it is already deleted.

# `get_job`

```elixir
@spec get_job(Req.Request.t(), Chatto.Admin.V1.GetJobRequest.t()) ::
  {:ok, Chatto.Admin.V1.GetJobResponse.t()} | {:error, Chatto.Connect.Error.t()}
```

Gets a job. Requires effective server.manage.

# `list_jobs`

```elixir
@spec list_jobs(Req.Request.t(), Chatto.Admin.V1.ListJobsRequest.t()) ::
  {:ok, Chatto.Admin.V1.ListJobsResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Lists jobs. Requires effective server.manage.
This call does not subscribe or poll; callers refresh explicitly.

# `retry_job`

```elixir
@spec retry_job(Req.Request.t(), Chatto.Admin.V1.RetryJobRequest.t()) ::
  {:ok, Chatto.Admin.V1.RetryJobResponse.t()}
  | {:error, Chatto.Connect.Error.t()}
```

Retries a failed job. Requires effective server.manage.
Returns FAILED_PRECONDITION for active, successful, or expired jobs.
A lost response does not cancel an accepted retry. Read the job before retrying.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
