This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 0842919982 Increase timeout for backfill pooled task tests (#40384)
0842919982 is described below

commit 08429199825de344b0669294eeca05122e468a4b
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Jun 22 20:45:56 2024 +0200

    Increase timeout for backfill pooled task tests (#40384)
    
    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 83117fe1c0..92a704304a 100644
--- a/tests/jobs/test_backfill_job.py
+++ b/tests/jobs/test_backfill_job.py
@@ -1013,10 +1013,10 @@ class TestBackfillJob:
         # 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()

Reply via email to