Skip to content

Commit

Permalink
Add missing session to CLI call
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Dec 19, 2024
1 parent 2e5e993 commit 851b897
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/cli/commands/remote_commands/task_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def _run_task_by_executor(args, dag: DAG, ti: TaskInstance) -> None:
from airflow.executors import workloads

workload = workloads.ExecuteTask.make(ti, dag_path=dag.relative_fileloc)
executor.queue_workload(workload)
with create_session() as session:
executor.queue_workload(workload, session)
else:
executor.queue_task_instance(
ti,
Expand Down

0 comments on commit 851b897

Please sign in to comment.