meg HF staff commited on
Commit
669e136
·
verified ·
1 Parent(s): 052d8b5

Update process_runs.py

Browse files
Files changed (1) hide show
  1. process_runs.py +3 -1
process_runs.py CHANGED
@@ -86,7 +86,9 @@ def update_requests(requests, all_attempts, failed_attempts):
86
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = FAILED
87
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['error_message']] = traceback_error
88
  elif line in failed_attempts:
89
- print(f"Job failed, but not sure why -- didn't find a traceback in {line}")
 
 
90
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = FAILED
91
  else:
92
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = COMPLETED
 
86
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = FAILED
87
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['error_message']] = traceback_error
88
  elif line in failed_attempts:
89
+ print(f"Job failed, but not sure why -- didn't find a traceback in {line}.")
90
+ print(f"Setting {model}, {task}, status {PENDING} to {FAILED}.")
91
+ print(requests_df[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task)])
92
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = FAILED
93
  else:
94
  requests_df.loc[(requests_df["status"] == PENDING) & (requests_df["model"] == model) & (requests_df["task"] == task), ['status']] = COMPLETED