927 B
927 B
Outcome - Fix Auth Scheduler Env Vars
Summary
Successfully fixed the environment variable loading issue in the authentication scheduler and updated the frequency configuration to support minutes.
Changes
- Refactored Scheduler Logic:
- Updated
src/lib/server/scheduler.tsto use$env/dynamic/privatefor reliable environment variable access. - Changed configuration from
intervalHourstointervalMinutes. - Updated
startSchedulerto calculate interval in milliseconds based on minutes.
- Updated
- Updated Documentation:
- Updated
src/hooks.server.tsJSDoc to reflect the new configuration.
- Updated
- Updated Configuration:
- Updated
.env.localto setAUTH_SCHEDULER_INTERVAL_MINUTES=5.
- Updated
- Verified Tests:
- Updated
src/tests/scheduler.spec.tsto mock$env/dynamic/privateand verify the new logic. - All tests passed.
- Updated
Feature Branch
feature/FixAuthSchedulerEnvVars