Last active
October 28, 2025 09:10
-
-
Save evalstate/e5d659bbde778c526531d1cd8bc3d933 to your computer and use it in GitHub Desktop.
uv job testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import datetime | |
| print('Job started') | |
| start_time = time.time() | |
| while time.time() - start_time < 120: # 2 minutes | |
| elapsed = int(time.time() - start_time) | |
| print(f'[{elapsed}s] Echo: Job is still running at {datetime.datetime.now()}', flush=True) | |
| time.sleep(5) | |
| print('Job completed after 2 minutes!') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment