Spaces:
Paused
Paused
Download trackio/dummy_commit_scheduler.py from trackio-tests/test_656: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/spaces/trackio-tests/test_656/resolve/main/trackio/dummy_commit_scheduler.py
- Command line
-
hf download hf://spaces/trackio-tests/test_656/trackio/dummy_commit_scheduler.py
-
curl -L -o dummy_commit_scheduler.py https://huggingface.co/spaces/trackio-tests/test_656/resolve/main/trackio/dummy_commit_scheduler.py
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 | |