SemanticAsyncEmbedWorker๏ƒ

Inherits: RefCounted < Object

Background worker that refreshes asset embedding vectors.

Description๏ƒ

Queues asynchronous embedding refresh jobs against SemanticAssetIndex. Poll jobs with poll_refresh() until they finish or are cancelled.

Methods๏ƒ

bool

cancel_refresh(job_id: String)

String

enqueue_refresh(stale_only: bool = true, force: bool = false)

Dictionary

poll_refresh(job_id: String)


Method Descriptions๏ƒ

bool cancel_refresh(job_id: String) ๐Ÿ”—

Requests cancellation of the refresh job identified by job_id. Returns true when the job existed.


String enqueue_refresh(stale_only: bool = true, force: bool = false) ๐Ÿ”—

Starts a background embedding refresh and returns a job id, or an empty string if the job could not be queued.


Dictionary poll_refresh(job_id: String) ๐Ÿ”—

Returns status for job_id, including ok, finished, cancelled, and refreshed_count.