Spaces:
Running
Running
Migrate workspace to local
Browse files
src/submission/details.py
CHANGED
|
@@ -59,7 +59,8 @@ def submission_report(submission_id: str, task_names: list[str], owner: str | No
|
|
| 59 |
payload['last_progress_update'] = progress.get('last_updated_at')
|
| 60 |
if record.get('status') in {'done', 'done_partial', 'failed', 'cancelled'}:
|
| 61 |
cleanup_dir = Path(PROCESSING_DIR).parent / 'cleanup'
|
| 62 |
-
payload['cleanup_pending'] = any(cleanup_dir.glob(f'{submission_id}-*.json'))
|
|
|
|
| 63 |
payload['scene_failures'] = progress.get('scene_failures') or record.get('scene_failures') or {}
|
| 64 |
requests = []
|
| 65 |
for folder in (DELETE_PENDING_DIR, DELETE_PROCESSING_DIR, DELETE_COMPLETE_DIR):
|
|
|
|
| 59 |
payload['last_progress_update'] = progress.get('last_updated_at')
|
| 60 |
if record.get('status') in {'done', 'done_partial', 'failed', 'cancelled'}:
|
| 61 |
cleanup_dir = Path(PROCESSING_DIR).parent / 'cleanup'
|
| 62 |
+
payload['cleanup_pending'] = True if any(cleanup_dir.glob(f'{submission_id}-*.json')) else None
|
| 63 |
+
payload['cleanup_note'] = 'Legacy shared cleanup records are checked here; local workspace cleanup is reported in Worker logs.'
|
| 64 |
payload['scene_failures'] = progress.get('scene_failures') or record.get('scene_failures') or {}
|
| 65 |
requests = []
|
| 66 |
for folder in (DELETE_PENDING_DIR, DELETE_PROCESSING_DIR, DELETE_COMPLETE_DIR):
|