Skip to content

Commit

Permalink
Pass dwas progress context from wrapped importData
Browse files Browse the repository at this point in the history
  • Loading branch information
willdunklin committed Nov 1, 2023
1 parent 7bc0031 commit 6bfac95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions import_tracker/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import time

from girder import plugin
from girder import plugin, logger
from girder.api.describe import autoDescribeRoute
from girder.api.rest import boundHandler
from girder.constants import AccessType
Expand Down Expand Up @@ -208,7 +208,7 @@ def dwaImportDataWrapper(self, assetstore, destinationId, destinationType, filte
'lastlog': time.time(),
'logcount': 0,
}
self._importData(assetstore, params={**params, '_job': jobRec})
self._importData(assetstore, params={**params, '_job': jobRec}, progress=ctx)

success = True
Job().updateJob(job, '%s - Finished. Checked %d, skipped %d\n' % (
Expand Down Expand Up @@ -260,4 +260,4 @@ def load(self, info):
if hasattr(info['apiRoot'], 'dicomweb_assetstore'):
wrapDICOMImport(info['apiRoot'].dicomweb_assetstore)
else:
print("dicomweb_assetstore not found, correct large_image version may not be loaded")
logger.info('dicomweb_assetstore not found')

0 comments on commit 6bfac95

Please sign in to comment.