The fencing token point is the part people often skip. SKIP LOCKED solves claiming, but lease expiry is where duplicate side effects can sneak back in, so pairing attempts with complete() is a neat way to close that hole without extra machinery.
Absolutely. One important distinction, though: the attempts check in complete() prevents a stale worker from updating the job record, but it doesn't prevent duplicate external side effects like sending an email or webhook. That's where idempotency keys become important. Queue-level safety and side-effect safety need to work together.