Administrative background-job inspection and recovery.
Summary
Functions
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.
Gets a job. Requires effective server.manage.
Lists jobs. Requires effective server.manage. This call does not subscribe or poll; callers refresh explicitly.
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.
Functions
@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.
@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.
@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.
@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.