From e7d8229e834a19e839abef05416b94cc1c394d9f Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Fri, 29 Dec 2023 18:23:07 +0100 Subject: [PATCH] Feat: Add grafana cron job --- initdb/04pgcron.sql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/initdb/04pgcron.sql b/initdb/04pgcron.sql index a29303c..7772a68 100644 --- a/initdb/04pgcron.sql +++ b/initdb/04pgcron.sql @@ -46,6 +46,9 @@ SELECT cron.schedule('cron_monitor_online', '*/10 * * * *', 'select public.cron_ --SELECT cron.schedule('cron_new_account_otp', '*/6 * * * *', 'select public.cron_process_new_account_otp_validation_fn()'); --UPDATE cron.job SET database = 'signalk' where jobname = 'cron_new_account_otp'; +-- Create a every 5 minute job cron_process_grafana_fn +SELECT cron.schedule('cron_grafana', '*/5 * * * *', 'select public.cron_process_grafana_fn()'); + -- Notification -- Create a every 1 minute job cron_process_new_notification_queue_fn, new_account, new_vessel, _new_account_otp SELECT cron.schedule('cron_new_notification', '*/1 * * * *', 'select public.cron_process_new_notification_fn()');