File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -195,12 +195,6 @@ impl RecordProgressThread {
195
195
let start = std:: time:: Instant :: now ( ) ;
196
196
197
197
if let Some ( ex) = Experiment :: get ( & db, & result. experiment_name ) . unwrap ( ) {
198
- metrics. record_completed_jobs (
199
- & worker_name,
200
- & ex. name ,
201
- result. data . results . len ( ) as i64 ,
202
- ) ;
203
-
204
198
let db = DatabaseDB :: new ( & db) ;
205
199
if let Err ( e) = db. store ( & ex, & result. data , EncodingType :: Plain ) {
206
200
// Failing to record a result is basically fine -- this
@@ -209,6 +203,12 @@ impl RecordProgressThread {
209
203
crate :: utils:: report_failure ( & e) ;
210
204
}
211
205
206
+ metrics. record_completed_jobs (
207
+ & worker_name,
208
+ & ex. name ,
209
+ result. data . results . len ( ) as i64 ,
210
+ ) ;
211
+
212
212
if let Err ( e) = db. clear_stale_records ( ) {
213
213
// Not a hard failure. We can continue even if we failed
214
214
// to clear records from already completed runs...
You can’t perform that action at this time.
0 commit comments