Class CrawlSession
java.lang.Object
io.quarkus.hibernate.orm.panache.PanacheEntityBase
ai.pipeline.connector.intake.entity.CrawlSession
@Entity
public class CrawlSession
extends io.quarkus.hibernate.orm.panache.PanacheEntityBase
Crawl session entity tracking document ingestion sessions.
Each crawl session represents a single ingestion run from a connector. Sessions track statistics, state, and metadata for monitoring and orphan detection.
Database Table: crawl_sessions
-
Field Summary
FieldsModifier and TypeFieldDescriptionAccount ID this connector belongs to.Total bytes processed.Timestamp when session completed.Connector type identifier.Client-provided crawl ID.DataSource ID that started this session.Whether to delete orphans at end of crawl.Number of documents that failed processing.Number of documents found during crawl.Number of documents successfully processed.Number of documents skipped.Unique session identifier (primary key).Timestamp of last heartbeat.Crawl metadata as JSON.Source system identifier.Timestamp when session started.Session state.Whether to track documents for orphan detection. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for JPA.Create a new crawl session. -
Method Summary
Methods inherited from class io.quarkus.hibernate.orm.panache.PanacheEntityBase
count, count, count, count, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, findAll, findAll, findById, findById, findByIdOptional, findByIdOptional, findByIds, flush, getEntityManager, getSession, isPersistent, list, list, list, list, list, list, listAll, listAll, persist, persist, persist, persist, persistAndFlush, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update
-
Field Details
-
id
Unique session identifier (primary key). Generated as UUID. -
datasourceId
DataSource ID that started this session. References datasource-admin service (not enforced cross-DB). -
crawlId
Client-provided crawl ID. Unique per connector. -
accountId
Account ID this connector belongs to. Copied from connector for efficient queries. -
state
Session state. Values: RUNNING, COMPLETED, FAILED, TERMINATED -
startedAt
Timestamp when session started. -
completedAt
Timestamp when session completed. Null if session is still running. -
lastHeartbeat
Timestamp of last heartbeat. Used for timeout detection. -
documentsFound
Number of documents found during crawl. -
documentsProcessed
Number of documents successfully processed. -
documentsFailed
Number of documents that failed processing. -
documentsSkipped
Number of documents skipped. -
bytesProcessed
Total bytes processed. -
trackDocuments
Whether to track documents for orphan detection. -
deleteOrphans
Whether to delete orphans at end of crawl. -
connectorType
Connector type identifier. -
sourceSystem
Source system identifier. -
metadata
Crawl metadata as JSON.
-
-
Constructor Details
-
CrawlSession
public CrawlSession()Default constructor for JPA. -
CrawlSession
-