Skip to content

Commit 6827306

Browse files
committed
mark Post process False after conversion
1 parent 5c77156 commit 6827306

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

samples/scripts/pushNotifications/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ uv run --script setup_minio.py -d ./sample
7171
uv run --script modify_bucket.py upload \
7272
--bucket dive-sample-data \
7373
--prefix new-sequence/ \
74-
--local-path ./some/local/folder
74+
--local-path ./newData
7575

7676
uv run --script send_gcs_push.py \
7777
--server http://localhost:8010 \
7878
--bucket dive-sample-data \
79-
--object "new-sequence/frame_0001.png"
79+
--object "new-sequence/"
8080
```
8181

8282
Check the DIVE UI: new datasets should appear or update under the configured mount folder as the server processes the import triggered by the notification.

server/dive_tasks/tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ def convert_video(
538538
constants.OriginalFPSMarker: originalFps,
539539
constants.OriginalFPSStringMarker: avgFpsString,
540540
constants.FPSMarker: newAnnotationFps,
541+
constants.MarkForPostProcess: False,
541542
"ffprobe_info": videostream[0],
542543
},
543544
)
@@ -604,6 +605,7 @@ def convert_video(
604605
constants.OriginalFPSMarker: originalFps,
605606
constants.OriginalFPSStringMarker: avgFpsString,
606607
constants.FPSMarker: newAnnotationFps,
608+
constants.MarkForPostProcess: False,
607609
"ffprobe_info": videostream[0],
608610
},
609611
)
@@ -652,7 +654,7 @@ def convert_images(self: Task, folderId, user_id: str, user_login: str):
652654

653655
gc.addMetadataToFolder(
654656
str(folderId),
655-
{"annotate": True}, # mark the parent folder as able to annotate.
657+
{"annotate": True, constants.MarkForPostProcess: False}, # mark the parent folder as able to annotate.
656658
)
657659

658660

0 commit comments

Comments
 (0)