You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One solution for your particular use case is to return early if the configuration is empty, avoiding the calls to biz entirely.
From the prospective of biz, given that methods like Biz::time would provide nonsensical results when provided an empty configuration, I think the solution to this issue is to raise a configuration validation error upfront at configuration time.
Just ran into this in my production system.
If you pass in an empty hours hash in
config.hours
, or if a single day has an empty hash, and you do something like:then it'll spin forever and blow up your server.
This happened to me because I have subtractive hours, so sometimes it turns out that there can be no hours for a certain timeframe.
The text was updated successfully, but these errors were encountered: