Skip to content

Commit

Permalink
Prevent task sdk tests with LocalExecutor fail with retries
Browse files Browse the repository at this point in the history
  • Loading branch information
jscheffl committed Dec 21, 2024
1 parent 71c8b0c commit 5399ace
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cli/commands/remote_commands/test_task_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ def test_cli_run_no_local_no_raw_runs_executor(self, dag_maker):
mock.patch(
"airflow.executors.executor_loader.ExecutorLoader.get_default_executor"
) as get_default_mock,
mock.patch("airflow.executors.local_executor.SimpleQueue"), # Prevent a task being queued
mock.patch("airflow.executors.local_executor.LocalExecutor.end"),
):
EmptyOperator(task_id="task1")
EmptyOperator(task_id="task2", executor="foo_executor_alias")
Expand Down

0 comments on commit 5399ace

Please sign in to comment.