Archived
Fix Track A recovery projection isolation and bounded prestart deadline
This commit is contained in:
1 parent
ef46d35772
commit
0886d459e6
65 files changed
+25625
-46
No files matched your search
@@ -89,11 +89,15 @@ def run(root):
|
||||
rows=[read(p) for p in sorted((root/'jobs'/str(i)/'worker/history').glob('*.json'))]
|
||||
if rows and rows[-1]['epoch']>last_epoch.get(i,0):
|
||||
epoch=rows[-1]['epoch'];cell=project_cell(c['jobs'][i],dict(epoch=epoch,max_epoch_seconds=max(r['train_epoch_seconds'] for r in rows),charged=60+age()))
|
||||
estimates[i]=cell;total=project_total(c,estimates,terminal,live())
|
||||
estimates[i]=cell
|
||||
# Isolate the rejected cell before budgeting future work.
|
||||
# Its raw estimate is retained in estimates/result unchanged.
|
||||
if not cell['within_cap']:own_stop(i,'OWN_PROJECTED_CAP')
|
||||
stopping={j for j in active if (root/'jobs'/str(j)/'stop.json').exists()}
|
||||
total=project_total(c,estimates,terminal,live(),stopping=stopping)
|
||||
result=dict(status='PASS' if cell['within_cap'] and total['status']=='PASS' else 'STOP_OWN_COST_PROJECTION',cell=cell,total=total,contract_sha256=sha(root/'contract.json'),unix=time.time())
|
||||
name='first-epoch-projection.json' if i not in last_epoch else 'latest-cost-projection.json'
|
||||
save(root/'jobs'/str(i)/name,result);save(root/'latest-cost-projection.json',total);last_epoch[i]=epoch
|
||||
if not cell['within_cap']:own_stop(i,'OWN_PROJECTED_CAP')
|
||||
if total['status']!='PASS':global_stop('CUMULATIVE_PROJECTED_CAP')
|
||||
if not (root/'global-stop.json').exists():dispatch()
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user