wait for pending queued data to be uploaded before completing sync task