decide

abstract fun decide(context: Context, client: Client): Boolean

Decides which side of the condition runs.

Any exception thrown marks the task instance as failed, and nothing is then pushed or skipped.

Return

True to run the ConditionRef.Then side, false the ConditionRef.Else side.

Parameters

context

Runtime context for the current execution workload.

client

Client for Airflow API calls scoped to this execution.

Throws

on failure; the task instance is marked failed.