This MR moves
managedUpdateUploadChunkStuckStatus into a
if to ensure that it is only called once per chunk. Otherwise we would keep marking chucks as stuck which requires syncs to disk and it also keeps spamming our logs.
I'm not sure why this change was reverted at some point but it seems to work perfectly fine on my node. Maybe the issue was related to the
chunkComplete bug we had at some point which is fixed now.