Fully Automated - 100% Backpressure - Pipeline runner ๐Ÿƒ for AI workflows. ๐Ÿš€

Commit dd9c2759

dd9c27594565Merged

Scott Nixon <[email protected]> ยท 9 months ago ยท 1 file ยท ~1 modified

Description

[attractor-3jj] Refactor DocumentWatcher to be per-project with SQLite persistence

  • Update DocumentWatcher::new to accept SqlitePool and project_id parameters
  • Persist document changes to SQLite via spawned async tokio task
  • Use Handle::current().spawn() to avoid blocking the notify watcher thread
  • Keep SSE broadcast unchanged for live updates
  • Files changes now update both SQLite (persistence) and broadcast channel (live updates)
  • Still create .attractor dir if missing

Expected breakage in document_stream function (fixed in attractor-v19):

  • Removed state.doc_watcher field access
  • Removed state.attractor_dir field access

Details

Commit
dd9c27594565
Parent
2dedda7bddf1

crates/attractor-web/src/server/documents.rsmodifiedView file

No text changes