Skip to content

PipelineEventSender

PipelineEventSender is used by PipelinesHandler to send pipelines execution progress events back to a Spark Connect client asynchronously.

PipelineEventSender uses spark.sql.pipelines.event.queue.capacity configuration property to control the depth of the event queue.

Creating Instance

PipelineEventSender takes the following to be created:

  • StreamObserver[ExecutePlanResponse]
  • SessionHolder

PipelineEventSender is created when:

queueCapacity

queueCapacity is the value of spark.sql.pipelines.event.queue.capacity configuration property.

Used when:

Send Pipeline Execution Progress Event

sendEvent(
  event: PipelineEvent): Unit

sendEvent...FIXME


sendEvent is used when:

shouldEnqueueEvent

shouldEnqueueEvent(
  event: PipelineEvent): Boolean

shouldEnqueueEvent...FIXME