QueueInflightCommit schedules an automatic commit for an inflight transaction at the specified date. Parameters: - ctx context.Context: The context for the operation. - transaction *model.Transaction: The transaction to be committed automatically. Returns: - error: An error if the task could not b
(ctx context.Context, transaction *model.Transaction)
| 337 | // Returns: |
| 338 | // - error: An error if the task could not be enqueued. |
| 339 | func (q *Queue) QueueInflightCommit(ctx context.Context, transaction *model.Transaction) error { |
| 340 | if !transaction.InflightCommitDate.IsZero() { |
| 341 | return q.queueInflightCommit(transaction.TransactionID, transaction.InflightCommitDate) |
| 342 | } |
| 343 | return nil |
| 344 | } |