Skip to content

Commit

Permalink
Merge pull request #14046 from nextcloud/backport/14033/stable-3.30
Browse files Browse the repository at this point in the history
[stable-3.30] Add Initial Delay For Two Way Sync
  • Loading branch information
tobiasKaminsky authored Nov 18, 2024
2 parents ba7d29d + fee1c65 commit c476113
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,9 @@ internal class BackgroundJobManagerImpl(
jobClass = InternalTwoWaySyncWork::class,
jobName = JOB_INTERNAL_TWO_WAY_SYNC,
intervalMins = intervalMinutes
).build()
)
.setInitialDelay(intervalMinutes, TimeUnit.MINUTES)
.build()

workManager.enqueueUniquePeriodicWork(JOB_INTERNAL_TWO_WAY_SYNC, ExistingPeriodicWorkPolicy.UPDATE, request)
}
Expand Down

0 comments on commit c476113

Please sign in to comment.