Webador / SlmQueue

Laminas / Mezzio module that integrates with various queue management systems.
Other
138 stars 57 forks source link

`max_frequency` only accepts integers #248

Closed gregtyler closed 2 years ago

gregtyler commented 2 years ago

The max_frequency setting of MaxPollingFrequencyStrategy determines the maximum number of polls per second. The documentation provides a handy guide of how this value relates to delays. For example, a 1-minute delay equates to ['max_frequency' => 0.0167].

However, setMaxFrequency takes an integer argument meaning that the lowest possible frequency is 1 (and therefore the longest possible delay is 1 second).

setMaxFrequency should accept a float, so that lower frequencies and longer delays can be configured, to match the documentation.