Skip to content

Commit

Permalink
Revert "#1149 | Convert timeouts to millisecond values as expected by…
Browse files Browse the repository at this point in the history
… workManager"

This reverts commit 6698139.
  • Loading branch information
himeshr committed Oct 26, 2023
1 parent 6698139 commit e0475f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/openchs-android/src/AvniBackgroundJob.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,35 @@ const SYNC_JOB_KEY = "syncJob"; //Should be used for both SyncJobSchedule and Du

const SyncJobSchedule = {
jobKey: SYNC_JOB_KEY,
timeout: 10 * 60 * 1000, //milliseconds
period: 60, // minutes
timeout: 10,
period: 60,
persist: true,
exact: true,
job: async() => await Sync.execute()
};

const DummySyncJobSchedule = {
jobKey: SYNC_JOB_KEY,
timeout: 1 * 60 * 1000, //milliseconds
period: 60, // minutes
timeout: 10,
period: 60,
persist: true,
exact: true,
job: async() => await DummySync.execute()
};

const DeleteDraftsJobSchedule = {
jobKey: "deleteDraftsJob",
timeout: 1 * 60 * 1000, //milliseconds
period: 1 * 24 * 60, // minutes
timeout: 10,
period: 1 * 24 * 60,
persist: true,
exact: true,
job: async() => await DeleteDrafts.execute()
};

const PruneMediaJobSchedule = {
jobKey: "pruneMediaJob",
timeout: 1 * 60 * 1000, //milliseconds
period: 1 * 24 * 60, // minutes
timeout: 10,
period: 1 * 24 * 60,
persist: true,
exact: true,
job: async() => await PruneMedia.execute()
Expand Down

0 comments on commit e0475f6

Please sign in to comment.