From a969207299d5aeb8a54ccba822f4b1839dde68ca Mon Sep 17 00:00:00 2001 From: dciangot Date: Tue, 11 Aug 2015 12:32:52 +0200 Subject: [PATCH 1/2] cache_area fix --- src/couchapp/DBSPublisher/views/cache_area/map.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/couchapp/DBSPublisher/views/cache_area/map.js b/src/couchapp/DBSPublisher/views/cache_area/map.js index a7b5609..8dc3eb5 100644 --- a/src/couchapp/DBSPublisher/views/cache_area/map.js +++ b/src/couchapp/DBSPublisher/views/cache_area/map.js @@ -2,8 +2,5 @@ function(doc) { if (doc.publication_state != 'published' && doc.publication_state != 'publication_failed' && doc.state == 'done' && doc.lfn && doc.dbs_url && doc.rest_host && doc.rest_uri && doc.publish == 1) { emit( doc.user, [doc.rest_host, doc.rest_uri]); - } - } } } - From 9702586dc3b8ac13f3d1ace7d31f07ca36747e51 Mon Sep 17 00:00:00 2001 From: dciangot Date: Tue, 11 Aug 2015 12:36:22 +0200 Subject: [PATCH 2/2] Mark failed fix --- src/python/AsyncStageOut/TransferWorker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/AsyncStageOut/TransferWorker.py b/src/python/AsyncStageOut/TransferWorker.py index b009c8d..9dfc425 100644 --- a/src/python/AsyncStageOut/TransferWorker.py +++ b/src/python/AsyncStageOut/TransferWorker.py @@ -523,7 +523,7 @@ def mark_failed(self, files=[], force_fail=False, submission_error=False, failur else: temp_lfn = lfn else: - if 'temp' not in lfn['value']: + if 'temp' not in lfn['value'][0]: temp_lfn = lfn['value'][0].replace('store', 'store/temp', 1) else: temp_lfn = lfn['value'][0]