pub async fn scan_multipart_uploads(
client: &Client,
bucket: &BucketId,
multipart_table: &MultipartTable,
older_than_secs: Option<u64>,
) -> Result<Vec<MultipartUpload>, AppError>Expand description
List all in-progress multipart uploads for bucket, classify each as
Brows3r or Unknown, and optionally filter out uploads younger than
older_than_secs.
ยงAlgorithm
- Call
list_multipart_uploadsto obtain all in-progress uploads. - For each upload, check
multipart_table.find_by_upload_id:- found โ
MultipartSource::Brows3r - not found โ
MultipartSource::Unknown
- found โ
- Apply the
older_than_secsthreshold โ uploads initiated less thanolder_than_secsseconds ago are excluded from the result.