File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ def execute(self) -> _TaskResult:
159159
160160 # Download results
161161 job .get_results ().download_files (target = self .download_dir )
162+
163+ # Count assets (files to download)
164+ assets = job .list_results ().get ('assets' , {})
165+ file_count = len (assets )
162166
163167 # Download metadata
164168 job_metadata = job .describe ()
@@ -171,15 +175,15 @@ def execute(self) -> _TaskResult:
171175 job_id = self .job_id ,
172176 df_idx = self .df_idx ,
173177 db_update = {}, #TODO consider db updates?
174- stats_update = {"job download" : 1 },
178+ stats_update = {"job download" : 1 , "files downloaded" : file_count },
175179 )
176180 except Exception as e :
177181 _log .error (f"Failed to download results for job { self .job_id !r} : { e !r} " )
178182 return _TaskResult (
179183 job_id = self .job_id ,
180184 df_idx = self .df_idx ,
181185 db_update = {},
182- stats_update = {"job download error" : 1 },
186+ stats_update = {"job download error" : 1 , "files downloaded" : 0 },
183187 )
184188
185189class _TaskThreadPool :
You can’t perform that action at this time.
0 commit comments