fix: worker processor_results + rule3 SQL + unregister cleanup bugs

- job_worker.rs: add upsert_processor_result when output file exists
- job_worker.rs: add load JSON and store to pre_chunks when output exists
- rule3_ingest.rs: fix SQL bind order (scene_number was occupying chunk_type slot)
- files.rs: fix unregister WHERE clause (uuid -> file_uuid) + add pre_chunks delete
- asrx_self/main_fixed.py: fix KeyError (s['start'] -> s['start_time'])
- wrapper_worker_playground.sh: add Worker launchd script
- com.momentry.playground.plist: add Playground launchd config
This commit is contained in:
Accusys
2026-05-26 04:35:51 +08:00
parent 87dead7f65
commit 127d646ef1
6 changed files with 124 additions and 11 deletions
+6 -7
View File
@@ -160,18 +160,17 @@ pub async fn ingest_rule3(pool: &PgPool, file_uuid: &str) -> Result<usize> {
))
.bind(file_uuid)
.bind(&chunk_id)
.bind(scene.scene_number as i32)
.bind("cut") // Chunk type
.bind("cut")
.bind(scene.start_time)
.bind(scene.end_time)
.bind(fps)
.bind(scene.start_frame as i64)
.bind(scene.end_frame as i64)
.bind(&metadata) // Content JSON
.bind(&aggregated_text) // Text content
.bind(&summary) // Summary
.bind(&metadata) // Metadata
.bind(&child_ids) // Child IDs
.bind(&metadata)
.bind(&aggregated_text)
.bind(&summary)
.bind(&metadata)
.bind(&child_ids)
.execute(&mut *tx)
.await?;