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
6 changes: 4 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,10 @@
"baserow.contrib.database.table.tasks.run_row_count_job": {"queue": "export"},
"baserow.core.jobs.tasks.clean_up_jobs": {"queue": "export"},
}
CELERY_TASK_SOFT_TIME_LIMIT = 60 * 5 # 5 minutes
CELERY_TASK_TIME_LIMIT = CELERY_TASK_SOFT_TIME_LIMIT + 60 # 60 seconds
CELERY_TASK_SOFT_TIME_LIMIT = int(
os.getenv("CELERY_TASK_SOFT_TIME_LIMIT") or 60 * 5
) # default 5 minutes
CELERY_TASK_TIME_LIMIT = CELERY_TASK_SOFT_TIME_LIMIT + 60 # default 6 minutes

CELERY_REDBEAT_REDIS_URL = REDIS_URL
# Explicitly set the same value as the default loop interval here so we can use it
Expand Down
3 changes: 2 additions & 1 deletion backend/src/baserow/core/notifications/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def beat_send_instant_notifications_summary_by_email(self):
bind=True,
queue="export",
raise_on_duplicate=True,
lock_expiry=60 * 5,
lock_expiry=settings.CELERY_TASK_TIME_LIMIT * 2,
time_limit=settings.CELERY_TASK_TIME_LIMIT * 2,
)
def singleton_send_instant_notifications_summary_by_email(self):
send_instant_notifications_email_to_users()
Expand Down
6 changes: 5 additions & 1 deletion web-frontend/modules/builder/pages/publicPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,11 @@ const { data: asyncDataResult, error } = await useAsyncData(

if (error.value) {
// If we have an error we want to display it.
throw error.value
if (error.value.statusCode === 404) {
showError(error.value)
} else {
throw error.value
}
}

const workspace = computed(() => asyncDataResult.value.workspace)
Expand Down
Loading