From dbdd5bca818f339395f418366120e87d118703ab Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Fri, 5 Apr 2024 11:49:25 +0200 Subject: [PATCH] Add dispatch_notifications_interval config option --- doc/source/admin/galaxy_options.rst | 11 +++++++++++ lib/galaxy/config/sample/galaxy.yml.sample | 4 ++++ lib/galaxy/config/schemas/config_schema.yml | 7 +++++++ 3 files changed, 22 insertions(+) diff --git a/doc/source/admin/galaxy_options.rst b/doc/source/admin/galaxy_options.rst index b5511036af2..81990b430c5 100644 --- a/doc/source/admin/galaxy_options.rst +++ b/doc/source/admin/galaxy_options.rst @@ -5463,6 +5463,17 @@ :Type: int +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +``dispatch_notifications_interval`` +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +:Description: + The interval in seconds between attempts to dispatch notifications + to users (every 10 minutes by default). Runs in a Celery task. +:Default: ``600`` +:Type: int + + ~~~~~~~~~~~~~~~~~~~~~~ ``help_forum_api_url`` ~~~~~~~~~~~~~~~~~~~~~~ diff --git a/lib/galaxy/config/sample/galaxy.yml.sample b/lib/galaxy/config/sample/galaxy.yml.sample index 8032d879039..183d7b93784 100644 --- a/lib/galaxy/config/sample/galaxy.yml.sample +++ b/lib/galaxy/config/sample/galaxy.yml.sample @@ -2911,6 +2911,10 @@ galaxy: # a Celery task. #expired_notifications_cleanup_interval: 86400 + # The interval in seconds between attempts to dispatch notifications + # to users (every 10 minutes by default). Runs in a Celery task. + #dispatch_notifications_interval: 600 + # The URL pointing to the Galaxy Help Forum API base URL. The API must # be compatible with Discourse API (https://docs.discourse.org/). #help_forum_api_url: https://help.galaxyproject.org/ diff --git a/lib/galaxy/config/schemas/config_schema.yml b/lib/galaxy/config/schemas/config_schema.yml index 99dbe965774..4ebf9f7adfa 100644 --- a/lib/galaxy/config/schemas/config_schema.yml +++ b/lib/galaxy/config/schemas/config_schema.yml @@ -3990,6 +3990,13 @@ mapping: desc: | The interval in seconds between attempts to delete all expired notifications from the database (every 24 hours by default). Runs in a Celery task. + dispatch_notifications_interval: + type: int + required: false + default: 600 + desc: | + The interval in seconds between attempts to dispatch notifications to users (every 10 minutes by default). Runs in a Celery task. + help_forum_api_url: type: str required: false