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
We have one problem related to our edge-case of working with Bundler Whenever and a background thread.
Due to the fact, that numeric.rb patches the Numeric, it expects the visibility of the NumericSeconds. What that means is, that in a rare case where you would have code running prior to loading whenever and you would require whenever, you end up with the following exception:
uninitialized constant Whenever
Would you be so kind (I can do it) and swap the loading order of those two classes?
repro (you need to start it couple of times and wait as it takes Ruby a while to jump with the require in between those executions and sometimes it will just hang forever):
Hey there,
First of all, thank you for this amazing gem.
We have one problem related to our edge-case of working with Bundler Whenever and a background thread.
Due to the fact, that
numeric.rb
patches theNumeric
, it expects the visibility of theNumericSeconds
. What that means is, that in a rare case where you would have code running prior to loading whenever and you would requirewhenever
, you end up with the following exception:Would you be so kind (I can do it) and swap the loading order of those two classes?
ref https://github.com/javan/whenever/blob/master/lib/whenever.rb#L1
ref https://github.com/javan/whenever/blob/master/lib/whenever/numeric.rb#L3
repro (you need to start it couple of times and wait as it takes Ruby a while to jump with the require in between those executions and sometimes it will just hang forever):
end effect:
The text was updated successfully, but these errors were encountered: