Skip to main content

Type Alias: JobsExport()

Type Alias: JobsExport()

type JobsExport = (jobKey: string) => JobAPI;

Public API shape of the jobs plugin. Callable to select a job by key.

Parameters

ParameterType
jobKeystring

Returns

JobAPI

Example

// Trigger a configured job
const { run_id } = await appkit.jobs("etl").runNow();

// Trigger and poll until completion
for await (const status of appkit.jobs("etl").runAndWait()) {
  console.log(status.status, status.run);
}

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs