• Jeff Liang's avatar
    Fix int overflow when using PoissonDistribution with FunctionScheduler · fa7945b1
    Jeff Liang authored
    Summary: Using the FunctionScheduler with PoissonDistribution will not work if we supply an interval of 36min+. This is around 2^31 so looks like it's hitting some integer limit. Also, there is no failure message and the behavior is that the function scheduler just never executes the function even for the first time after startup interval. Fixing this by using the proper type in the disribution.
    
    Reviewed By: yfeldblum
    
    Differential Revision: D24505727
    
    fbshipit-source-id: ad050cf82bcf5a39383ffc601b52ad05d3d54f44
    fa7945b1
FunctionScheduler.cpp 16.4 KB