Threadline.ExportQueue.TaskAdapter (Threadline v0.10.1)

Copy Markdown View Source

Runs export jobs in supervised, in-process tasks.

This is the default Threadline.ExportQueue adapter. It starts a child under the export task supervisor that Threadline adds to its supervision tree, then runs the queued export lifecycle.

The adapter is lightweight and requires no optional dependency, but queued work is not durable across node or process restarts. Use Threadline.ExportQueue.Oban when the queue must be persistent or shared by multiple nodes.

enqueue/2 accepts :storage_schema and passes it to the orchestrator. Tests and custom supervision trees may override :supervisor; if that supervisor is unavailable, the adapter returns {:error, :supervisor_not_started}.

Summary

Functions

Enqueues the export job by spawning a supervised task.

Functions

enqueue(job_id, opts \\ [])

Enqueues the export job by spawning a supervised task.