Add a job to backfill attachment uploads to the archive service.

This commit is contained in:
Greyson Parrelli
2024-04-18 11:23:58 -04:00
parent 1e4d96b7c4
commit a82b9ee25f
17 changed files with 567 additions and 113 deletions

View File

@@ -1,14 +0,0 @@
/*
* Copyright 2024 Signal Messenger, LLC
* SPDX-License-Identifier: AGPL-3.0-only
*/
package org.thoughtcrime.securesms.jobmanager
import org.thoughtcrime.securesms.jobmanager.impl.BackoffUtil
import org.thoughtcrime.securesms.util.FeatureFlags
/**
* Helper to calculate the default backoff interval for a [Job] given it's run attempt count.
*/
fun Job.defaultBackoffInterval(): Long = BackoffUtil.exponentialBackoff(runAttempt + 1, FeatureFlags.getDefaultMaxBackoff())