Skip to content

Commit

Permalink
fix: Mark the ProcessMessageNotificationsWorker as expedited
Browse files Browse the repository at this point in the history
This will signal to the OS that we want it to run ASAP
  • Loading branch information
LouisCAD committed Feb 6, 2025
1 parent e817e67 commit 9b8643f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class ProcessMessageNotificationsWorker @AssistedInject constructor(
val workRequest = OneTimeWorkRequestBuilder<ProcessMessageNotificationsWorker>()
.addTag(TAG)
.setInputData(workData)
.setExpedited(OutOfQuotaPolicy.RUN_AS_NON_EXPEDITED_WORK_REQUEST)
.setConstraints(Constraints.Builder().setRequiredNetworkType(NetworkType.CONNECTED).build())
.build()

Expand Down

0 comments on commit 9b8643f

Please sign in to comment.