From 5aaa9e30a5a2cabb3eb1f6fa0ca860ec05fb118d Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sat, 22 Jun 2024 19:18:55 +0200 Subject: [PATCH] Increase timeout for backfill pooled task tests This test seems to intermittently fail and it looks like it's because timeout when run in parallel. Increasing timeout should help, also logging the timeout should help to diagnose things in case it happens again. --- tests/jobs/test_backfill_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/jobs/test_backfill_job.py b/tests/jobs/test_backfill_job.py index 83117fe1c0886..92a704304a470 100644 --- a/tests/jobs/test_backfill_job.py +++ b/tests/jobs/test_backfill_job.py @@ -1013,10 +1013,10 @@ def test_backfill_pooled_tasks(self): # run with timeout because this creates an infinite loop if not # caught try: - with timeout(seconds=5): + with timeout(seconds=20): run_job(job=job, execute_callable=job_runner._execute) except AirflowTaskTimeout: - pass + logger.info("Timeout while waiting for task to complete") run_id = f"backfill__{DEFAULT_DATE.isoformat()}" ti = TI(task=dag.get_task("test_backfill_pooled_task"), run_id=run_id) ti.refresh_from_db()