Let AttachmentUploadJob handle retrying

This way we can better handle e.g. authorization issues
pull/298/head
nielsandriesse 4 years ago
parent 71f338430e
commit b7a2de3572

@ -52,7 +52,7 @@ public class AttachmentUploadJob extends BaseJob implements InjectableType {
this(new Job.Parameters.Builder()
.addConstraint(NetworkConstraint.KEY)
.setLifespan(TimeUnit.DAYS.toMillis(1))
.setMaxAttempts(1)
.setMaxAttempts(5)
.build(),
attachmentId, destination);
}

Loading…
Cancel
Save