• pbair's avatar
    Allow small variance when running migration jobs · fcd41d81
    pbair authored
    When running batched background migrations, allow a small variance in
    the `interval_elapsed?` check, to prevent issues where the cron skips a
    job execution due to missing the next execution window by only several
    seconds.
    
    Without the variance, a job scheduled to run every 2 minutes will often
    run closer to every 3 minutes in practice.
    fcd41d81
batched_migration.rb 1.8 KB