Fix lifespan of RefreshAttributesJob.

This commit is contained in:
Greyson Parrelli
2022-10-05 18:05:52 -04:00
parent 293bc2da47
commit 1fc119e027

View File

@@ -50,7 +50,7 @@ public class RefreshAttributesJob extends BaseJob {
.addConstraint(NetworkConstraint.KEY)
.setQueue("RefreshAttributesJob")
.setMaxInstancesForFactory(2)
.setLifespan(TimeUnit.DAYS.toDays(30))
.setLifespan(TimeUnit.DAYS.toMillis(30))
.setMaxAttempts(Parameters.UNLIMITED)
.build(),
forced);