Skip to content

Commit

Permalink
Run update job every 20 days
Browse files Browse the repository at this point in the history
  • Loading branch information
AChep committed Feb 17, 2022
1 parent 48b2500 commit 22c3ab8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -23,7 +23,7 @@ fun Context.startUpdateWidgetJob(key: String) {

fun Context.startUpdateDatabaseJob(key: String) {
val policy = ExistingPeriodicWorkPolicy.REPLACE
val duration = Duration.ofDays(5)
val duration = Duration.ofDays(20)
val request = PeriodicWorkRequestBuilder<DatabaseUpdateWorker>(duration)
.setConstraints(
Constraints.Builder()
Expand Down

0 comments on commit 22c3ab8

Please sign in to comment.