Re: How to run a task continuously in the background

Поиск
Список
Период
Сортировка
От Dirk Mika
Тема Re: How to run a task continuously in the background
Дата
Msg-id 524EDA3D-6A0F-4E67-AA7E-0E743A8B79E1@mikatiming.de
обсуждение исходный текст
Ответ на RE: How to run a task continuously in the background  (Steven Winfield <Steven.Winfield@cantabcapital.com>)
Список pgsql-general

 

pg_cron, perhaps?
https://www.citusdata.com/blog/2016/09/09/pgcron-run-periodic-jobs-in-postgres/

I _think_ it ticks all three of your boxes.

I also checked pg_cron, but this has the disadvantage that it allows starting a job at most once a minute. On the other hand, the job runs as long as there are records to process. And during this time nothing should be queued again.

DIrk

--
Dirk Mika
Software Developer



mika:timing GmbH
Strundepark - Kürtener Str. 11b
51465 Bergisch Gladbach
Germany

fon +49 2202 2401-1197
dirk.mika@mikatiming.de
www.mikatiming.de

AG Köln HRB 47509 * WEEE-Reg.-Nr. DE 90029884
Geschäftsführer: Harald Mika, Jörg Mika


 
Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Download link for postgres 10.8 edb software
Следующее
От: Dirk Mika
Дата:
Сообщение: Re: How to run a task continuously in the background