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๏
cancel_refresh(job_id: String) |
|
enqueue_refresh(stale_only: bool = true, force: bool = false) |
|
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.