Commit 91f067f
authored
feat: recheck pin status on GET /pins/:req-id (#2214)
When using kubo to `ipfs remote pin add` we get a GET request every
second checking for an update to the pin status.
Here we use that as a trigger to ask pickup for a status update. This
will be handled by a lambda invocation and a single item db read, and
will be pretty low impact.
In return we will be able to inform the user as soon as their pin is
complete rather than having to wait up to an hour for an async pin
update job to complete.
fixes #2213
License: MIT
Signed-off-by: Oli Evans <oli@protocol.ai>1 parent 6f06ca7 commit 91f067f
1 file changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
147 | 165 | | |
148 | 166 | | |
149 | 167 | | |
| |||
0 commit comments