• Y
    Don't schedule ProjectCacheWorker unless needed · 3b4af59a
    Yorick Peterse 提交于
    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
exclusive_lease.rb 2.7 KB