• Andreas Brandl's avatar
    Global lease for database reindexing · 8d8cb077
    Andreas Brandl authored
    The idea here is to only ever have one reindexing process running at a
    time.
    
    We generously choose the timeout for this (1 day), but in the regular
    case we expect things to succeed much quicker. The timeout needs to be
    above 3 times the statement timeout for reindexing (3 steps that can
    take up to 6 hours currently). Overall, it doesn't hurt to set a high
    timeout for this - it may just slow reindexing process down (chances are
    low for this).
    8d8cb077
db_rake_spec.rb 10.4 KB