Skip to content

Commit

Permalink
loop scheduler before running dag in docker tests (#45262)
Browse files Browse the repository at this point in the history
  • Loading branch information
gopidesupavan authored Dec 28, 2024
1 parent 6020a26 commit a22faa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docker_tests/test_docker_compose_quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ def test_trigger_dag_and_wait_for_result(default_docker_image, tmp_path_factory,
compose.down(remove_orphans=True, volumes=True, quiet=True)
try:
compose.up(detach=True, wait=True, color=not os.environ.get("NO_COLOR"))
compose.execute(service="airflow-scheduler", command=["airflow", "scheduler", "-n", "50"])

api_request("PATCH", path=f"dags/{DAG_ID}", json={"is_paused": False})
api_request("POST", path=f"dags/{DAG_ID}/dagRuns", json={"dag_run_id": DAG_RUN_ID})
Expand Down

0 comments on commit a22faa5

Please sign in to comment.