Skip to content

Commit

Permalink
Merge pull request #303 from HASEL-UZH/feature/295-issues-with-experi…
Browse files Browse the repository at this point in the history
…ence-sampling

Cancel all jobs, reduce interval for testing
  • Loading branch information
SRichner authored Mar 19, 2024
2 parents 80786bc + 6e041a1 commit 077ddf8
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 077ddf8

Please sign in to comment.