Description
Describe the bug
When creating a SchedulerConfiguration in my settings file, the settings have no effect.
To Reproduce
Create a scheduler config as follows in your settings.py file
SCHEDULER_CONFIG = SchedulerConfiguration(
EXECUTIONS_IN_PAGE=1
)
Queue a couple jobs, and notice that the executions still climb to 20 on a page.
Expected behavior
There should only be 1 execution on a page
Desktop (please complete the following information):
- OS: mac
- python version: 3.12
- django version: 5.2.1
Additional context
scheduler.settings on line 36 tries to pull the settings. If SCHEDULER_CONFIG is type SchedulerConfiguration (as in the documentation), the code returns instead of adopting it's values (line 38).
If SCHEDULER_CONFIG is a dictionary, line 44 in scheduler.settings tries to use getattr on a dict, which is not possible.