Skip to content

Conversation

@nevans
Copy link
Collaborator

@nevans nevans commented Oct 28, 2015

Merges #142 with #141, and namespaces even further down into Resque::Pool::ConfigLoaders.

Also renames ConfigThrottle to ConfigLoaders::Throttled and updates the initialize API to take period as an optional keyword arg (defaults to 10).

joshuaflanagan and others added 7 commits October 26, 2015 18:16
Many custom configuration loaders will retrieve the
configuration from an external resource. `Resque::Pool`
asks the loader for the latest configuration roughly
once per second. You may want to reduce load on your
external resource by caching the value, and only
really fetching the latest configuration after a
specific amount of time has passed.

Instead of forcing each configuration loader author
to re-write (and test) this logic, we provide `Resque::Pool::ConfigThrottle`.

See the spec for full details of its behavior.
@nevans nevans merged commit f2e548f into master Mar 7, 2019
@nevans nevans deleted the config_loaders_namespace branch March 7, 2019 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants