File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1329,8 +1329,8 @@ def status(self):
1329
1329
return "new"
1330
1330
1331
1331
if not self .last_status == "completed" :
1332
-
1333
- table_from_clerk , db_clerk = self .deliveryclerk .get_update_subjobs_in_database (self )
1332
+
1333
+ from_clerk = self .deliveryclerk .get_update_subjobs_in_database (self )
1334
1334
1335
1335
status_list = []
1336
1336
@@ -1339,7 +1339,8 @@ def status(self):
1339
1339
sj_doc = self .jobtable .get (doc_id = n )
1340
1340
sj = self .subjobs [n ]
1341
1341
1342
- if table_from_clerk is not None :
1342
+ if from_clerk is not None :
1343
+ table_from_clerk , db_clerk = from_clerk
1343
1344
sj_doc_from_clerk = table_from_clerk .get (Query ().subjobnumber == n )
1344
1345
else :
1345
1346
sj_doc_from_clerk = None
@@ -1373,6 +1374,8 @@ def status(self):
1373
1374
status , sj_doc_from_clerk ["status" ], sj .output
1374
1375
)
1375
1376
status = sj_doc_from_clerk ["status" ]
1377
+
1378
+ db_clerk .close ()
1376
1379
1377
1380
if sj_doc ["jobid" ] != jobid or sj_doc ["status" ] != status :
1378
1381
sj_doc ["jobid" ] = jobid
@@ -1383,7 +1386,6 @@ def status(self):
1383
1386
# if status in ["completed", "failed"]:
1384
1387
# self.subjobs[n] = None
1385
1388
1386
- db_clerk .close ()
1387
1389
1388
1390
status_list .append (status )
1389
1391
You can’t perform that action at this time.
0 commit comments