Skip to content

Commit

Permalink
Cancel all jobs, reduce interval for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SRichner committed Mar 19, 2024
1 parent 46f95b7 commit 6e041a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ export class ExperienceSamplingTracker implements Tracker {
}

public stop(): void {
this.checkIfExperienceSamplingIsDueJob.cancel();
this.checkIfExperienceSamplingIsDueJob?.cancel();
this.forcedExperienceSamplingJob?.cancel();
this.isRunning = false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/electron/shared/study.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ const studyConfig: StudyConfiguration = {
['not at all productive', 'moderately productive', 'very productive'],
['not well', 'moderately well', 'very well']
],
// 3 hours
intervalInMs: 1000 * 60 * 60 * 3,
// TODO: Change back to 3 hours
intervalInMs: 1000 * 60 * 60 * 1,
// 10% randomization, so the interval will be between 2.7 and 3.3 hours
samplingRandomization: 0.1
}
Expand Down

0 comments on commit 6e041a1

Please sign in to comment.