• Yorick Peterse's avatar
    Don't schedule ProjectCacheWorker unless needed · 3b4af59a
    Yorick Peterse authored
    This changes ProjectCacheWorker.perform_async so it only schedules a job
    when no lease for the given project is present. This ensures we don't
    end up scheduling hundreds of jobs when they won't be executed anyway.
    3b4af59a
spec_helper.rb 1.74 KB