pyln: Use a fair FS lock to throttle node startups

We were getting a couple of starvations, so we need a fair filelock. I
also wasn't too happy with the lock as is, so I hand-coded it quickly.

Should be correct, but the overall timeout will tell us how well we
are doing on CI.
This commit is contained in:
Christian Decker
2021-01-18 21:05:18 +01:00
committed by Rusty Russell
parent 8cc62d76e4
commit 4c3ee04bb7
3 changed files with 45 additions and 10 deletions

View File

@@ -198,8 +198,8 @@ def teardown_checks(request):
@pytest.fixture
def throttler():
yield Throttler()
def throttler(test_base_dir):
yield Throttler(test_base_dir)
@pytest.fixture