# Settle upload reference checks before uploading, not inside it · dara/icarus

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

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

Visibility: public

Requested revision: fab3270bf681226f2be3674682e223c22ecadbf3

Requested commit: fab3270bf681226f2be3674682e223c22ecadbf3

Commit: fab3270bf681226f2be3674682e223c22ecadbf3

Tree: a416427a9981c80ef20e873aa04c7864fc2c993f

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Settle upload reference checks before uploading, not inside it

A job marked for a reference check was checked when the worker picked
it. A removal that kept failing then left it first in line on every
attempt, holding up the uploads behind it, and a staged job took the
removal on a path that could throw out of retryNow. A marked job now
never uploads: each retry first settles the checks it can (online, no
upload running), a failed removal leaves the job marked and waiting,
and every other job goes on.

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

```

## Parents

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

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