mirror of https://github.com/commaai/tinygrad.git
refresh process replay schedule ref in reset.py (#6265)
This commit is contained in:
parent
7be5eede71
commit
ae23540d6e
|
@ -1,5 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
from tinygrad.helpers import db_connection, VERSION, getenv
|
||||
from tinygrad.helpers import db_connection, VERSION, getenv, os
|
||||
cur = db_connection()
|
||||
cur.execute(f"drop table if exists process_replay_{getenv('GITHUB_RUN_ID', 'HEAD')}_{getenv('GITHUB_RUN_ATTEMPT')}_{VERSION}")
|
||||
cur.execute(f"drop table if exists schedule_diff_{VERSION}")
|
||||
if os.path.exists(fp:=__file__.replace("reset", "master_schedule")):
|
||||
os.system(f"rm -rf {fp}")
|
||||
|
|
Loading…
Reference in New Issue