mix rindle.abort_incomplete_uploads (Rindle v0.1.5)

Copy Markdown View Source

Transitions timed-out upload sessions through the abort half of Rindle's maintenance lane.

This is a prerequisite for mix rindle.cleanup_orphans, which only removes sessions that are already in the expired state. Running both tasks in sequence provides a safe, two-step cleanup lane:

  1. mix rindle.abort_incomplete_uploads — mark timed-out sessions as expired and cancel resumable sessions remotely when needed.
  2. mix rindle.cleanup_orphans — delete expired sessions and their objects.

Usage

mix rindle.abort_incomplete_uploads

Exit codes

  • 0 — all timed-out sessions were successfully transitioned.
  • 1 — one or more sessions could not be transitioned (errors are logged and counted in the output).

Examples

# Standard usage in a cron/CI pipeline
mix rindle.abort_incomplete_uploads && mix rindle.cleanup_orphans

Notes

Sessions that are already in a terminal state (completed, expired, failed) are not touched by the first-pass timeout scan. Timed-out resumable sessions are cancelled only from this abort lane, and retryable resumable cancel failures are retried here until they converge or exhaust worker attempts.