Let AttachmentUploadJob handle retrying

This way we can better handle e.g. authorization issues
This commit is contained in:
nielsandriesse 2020-08-26 10:42:22 +10:00
parent 71f338430e
commit b7a2de3572

View File

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