QueueGetTx returns the queue with the given name. If the queue has not recently been active or does not exist, returns ErrNotFound. The provided context is used for the underlying Postgres query and can be used to cancel the operation or apply a timeout.
(ctx context.Context, tx TTx, name string)
| 2599 | // The provided context is used for the underlying Postgres query and can be |
| 2600 | // used to cancel the operation or apply a timeout. |
| 2601 | func (c *Client[TTx]) QueueGetTx(ctx context.Context, tx TTx, name string) (*rivertype.Queue, error) { |
| 2602 | return c.driver.UnwrapExecutor(tx).QueueGet(ctx, &riverdriver.QueueGetParams{ |
| 2603 | Name: name, |
| 2604 | Schema: c.config.Schema, |
| 2605 | }) |
| 2606 | } |
| 2607 | |
| 2608 | // QueueListResult is the result of a job list operation. It contains a list of |
| 2609 | // jobs and leaves room for future cursor functionality. |