feat: seed default plugins/pipelines, auto-enqueue jobs on asset ingest

- Migration seeds metadata_extractor, sidecar_sync, no_op plugins
- Pipelines: extract_metadata → metadata_extractor, sync_sidecar → sidecar_sync
- Worker reacts to AssetIngested → enqueues ExtractMetadata job
- Worker reacts to SidecarSyncRequested → enqueues SyncSidecar job
- Closes the ingest-to-processing loop end-to-end
This commit is contained in:
2026-05-31 20:12:42 +02:00
parent b5cda3afeb
commit d1c7243f5b
19 changed files with 127 additions and 71 deletions

View File

@@ -16,5 +16,8 @@ pub trait EventConsumer: Send + Sync {
#[async_trait]
pub trait EventStore: Send + Sync {
async fn append(&self, event: &DomainEvent) -> Result<(), DomainError>;
async fn query_by_aggregate(&self, aggregate_id: &SystemId) -> Result<Vec<DomainEvent>, DomainError>;
async fn query_by_aggregate(
&self,
aggregate_id: &SystemId,
) -> Result<Vec<DomainEvent>, DomainError>;
}