# Keep an upload's reference check when removing it fails · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/a03bf21612748dcb7f9685cb16887973b6704f37)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: a03bf21612748dcb7f9685cb16887973b6704f37

Requested commit: a03bf21612748dcb7f9685cb16887973b6704f37

Commit: a03bf21612748dcb7f9685cb16887973b6704f37

Tree: 1d89a665b74cd3c92ae3731b568b2556667aca9c

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Keep an upload's reference check when removing it fails

The check before an upload's attempt ran outside the upload's error
handling, and dropped its mark first. When removing an unreferenced job
failed, the error escaped the upload worker, stopping it, and the next
attempt uploaded the discarded image. The mark now stays until the check
settles, a failed removal waits for the usual retry, and the job never
uploads in between.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

```

## Parents

- [d41ba4b8c4c92ae08ecc3f9a0ad8ae1a2fe2b698](https://git.cafe/dara/icarus/commit/d41ba4b8c4c92ae08ecc3f9a0ad8ae1a2fe2b698?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/a03bf21612748dcb7f9685cb16887973b6704f37?format=markdown)
