From 234933af44ceb25ec1297479b7e94dde7138a0f7 Mon Sep 17 00:00:00 2001 From: Lova Andriarimalala <43842786+Xpirix@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:22:47 +0300 Subject: [PATCH] Add update_qgis_versions task to celery schedule (#418) --- qgis-app/plugins/tasks/__init__.py | 1 + qgis-app/settings_docker.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/qgis-app/plugins/tasks/__init__.py b/qgis-app/plugins/tasks/__init__.py index a0df9010..1ee99c38 100644 --- a/qgis-app/plugins/tasks/__init__.py +++ b/qgis-app/plugins/tasks/__init__.py @@ -1,2 +1,3 @@ from plugins.tasks.generate_plugins_xml import * # noqa from plugins.tasks.update_feedjack import * # noqa +from plugins.tasks.update_qgis_versions import * # noqa diff --git a/qgis-app/settings_docker.py b/qgis-app/settings_docker.py index 4b5bd1f4..9d1903c0 100644 --- a/qgis-app/settings_docker.py +++ b/qgis-app/settings_docker.py @@ -152,6 +152,10 @@ 'update_feedjack': { 'task': 'plugins.tasks.update_feedjack.update_feedjack', 'schedule': crontab(minute='*/30'), # Execute every 30 minutes. + }, + 'update_qgis_versions': { + 'task': 'plugins.tasks.update_qgis_versions.update_qgis_versions', + 'schedule': crontab(minute='*/30'), # Execute every 30 minutes. } } # Set plugin token access and refresh validity to a very long duration