test_468 / trackio /dummy_commit_scheduler.py
abidlabs's picture
abidlabs HF Staff
Upload folder using huggingface_hub
ce5eb15 verified
raw
history blame contribute delete
423 Bytes
from concurrent.futures import Future
class DummyCommitSchedulerLock:
def __enter__(self):
return None
def __exit__(self, exception_type, exception_value, exception_traceback):
pass
class DummyCommitScheduler:
def __init__(self):
self.lock = DummyCommitSchedulerLock()
def trigger(self) -> Future:
fut: Future = Future()
fut.set_result(None)
return fut