Skip to content

Instantly share code, notes, and snippets.

@evalstate
Last active October 28, 2025 09:10
Show Gist options
  • Select an option

  • Save evalstate/e5d659bbde778c526531d1cd8bc3d933 to your computer and use it in GitHub Desktop.

Select an option

Save evalstate/e5d659bbde778c526531d1cd8bc3d933 to your computer and use it in GitHub Desktop.
uv job testing
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