Skip to main content

Function: runInUserContext()

function runInUserContext<T>(userContext: 
  | UserContext
  | CallerContext & Pick<UserContext, "warehouseId">, fn: () => T): T;

Type Parameters

Type Parameter
T

Parameters

ParameterType
userContext| UserContext | CallerContext & Pick<UserContext, "warehouseId">
fn() => T

Returns

T

Deprecated

Use runInCallerContext.

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs