Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🧹 add dynamic toggling for job scheduling using environment variables
- Updated `find_or_schedule_jobs` to dynamically include jobs based on environment variables. - Introduced the following environment flags to control job scheduling: - `ENABLE_BATCH_EMAIL` for `BatchEmailNotificationJob` - `ENABLE_DEPOSITOR_EMAIL` for `DepositorEmailNotificationJob` - `ENABLE_USER_STAT` for `UserStatCollectionJob` - This allows buggy jobs to be disabled temporarily without modifying the codebase. - Default behavior ensures only non-buggy jobs are scheduled when flags are not set.
- Loading branch information