Skip to content

Commit

Permalink
Log background task running to try and see why it isn't
Browse files Browse the repository at this point in the history
  • Loading branch information
Lan2u committed Sep 14, 2024
1 parent cc2789f commit ed46727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ prod:
test: node_modules
bun jest

# Add your own! _<name> commands are liable to change / be removed with no notice (but ask the person!)
test_paul: node_modules
bun jest tests/training-sheets/process-events.test.ts -t 'training sheet with a summary page'

smoketest: .env
./scripts/smoketest.sh

Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ createTerminus(server);

const backgroundTask = setInterval(() => {
if (O.isNone(deps.updateTrainingQuizResults)) {
deps.logger.info('Background task skipped as disabled');
return;
}
deps.logger.info('Background task running...');
deps.updateTrainingQuizResults
.value()
.then(() => deps.logger.info('Background update of quiz results finished'))
Expand Down

0 comments on commit ed46727

Please sign in to comment.