Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/baserow/config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@
"baserow.contrib.database.table.tasks.run_row_count_job": {"queue": "export"},
"baserow.core.jobs.tasks.clean_up_jobs": {"queue": "export"},
}
CELERY_SOFT_TIME_LIMIT = 60 * 5 # 5 minutes
CELERY_TIME_LIMIT = CELERY_SOFT_TIME_LIMIT + 60 # 60 seconds
CELERY_TASK_SOFT_TIME_LIMIT = 60 * 5 # 5 minutes
CELERY_TASK_TIME_LIMIT = CELERY_TASK_SOFT_TIME_LIMIT + 60 # 60 seconds

CELERY_REDBEAT_REDIS_URL = REDIS_URL
# Explicitly set the same value as the default loop interval here so we can use it
Expand Down
17 changes: 17 additions & 0 deletions backend/tests/baserow/config/test_celery_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import pytest

from baserow.config.celery import app


@pytest.mark.django_db
def test_celery_task_time_limits_are_configured():
"""
Verify that Celery task time limits are correctly configured.

Using the wrong names (e.g. without 'TASK_') causes the settings to be
silently ignored.
"""

# Both values would be None if the settings were not configured correctly
assert app.conf.task_soft_time_limit > 0
assert app.conf.task_time_limit > app.conf.task_soft_time_limit
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "bug",
"message": "Fixed Celery time limits to use the correct config names.",
"issue_origin": "github",
"issue_number": null,
"domain": "core",
"bullet_points": [],
"created_at": "2026-02-02"
}
Loading