Inttegro.Schedules (inttegro v0.2.0)

Copy Markdown View Source

Reads and cancels scheduled work created through Inttegro APIs.

A schedule records when a supported operation should run and whether it is still actionable. Cancellation affects future execution; it does not reverse work that has already completed.

Summary

Functions

Cancel a schedule before execution wins the cancellation race.

Look up a scheduled Chime

Functions

cancel(client, request, options \\ [])

Cancel a schedule before execution wins the cancellation race.

Parameters

Returns

Returns {:ok, Inttegro.Schedules.CancelDetail.t()} when Inttegro accepts and decodes the operation. Returns {:error, exception} for API, transport, or decoding failures. A successful API response can still describe an asynchronous resource that has not reached its terminal state.

Example

request = Inttegro.Schedules.CancelRequest.new!(request_attributes)

case Inttegro.Schedules.cancel(client, request) do
  {:ok, result} -> result
  {:error, error} -> {:error, error}
end

lookup(client, request, options \\ [])

Look up a scheduled Chime

Parameters

Returns

Returns {:ok, Inttegro.Schedules.Detail.t()} when Inttegro accepts and decodes the operation. Returns {:error, exception} for API, transport, or decoding failures. A successful API response can still describe an asynchronous resource that has not reached its terminal state.

Example

request = Inttegro.Schedules.LookupRequest.new!(request_attributes)

case Inttegro.Schedules.lookup(client, request) do
  {:ok, result} -> result
  {:error, error} -> {:error, error}
end