Re: How to run a task continuously in the background

Поиск
Список
Период
Сортировка
От Dirk Mika
Тема Re: How to run a task continuously in the background
Дата
Msg-id D49B7AAD-5EC3-4D62-A263-E22E6633C807@mikatiming.de
обсуждение исходный текст
Ответ на Re: How to run a task continuously in the background  (Michael Nolan <htfoot@gmail.com>)
Ответы Re: How to run a task continuously in the background  (Brent Wood <pcreso@yahoo.com>)
Re: How to run a task continuously in the background  (lilu <lixiao_fly@126.com>)
Re: How to run a task continuously in the background  (Luca Ferrari <fluca1978@gmail.com>)
Список pgsql-general

 

A cron job will only run once a minute, not wake up every second. 

 

Right, that’s an issue.

 

But you could write a PHP program that does a one-second sleep before checking if there's something to do, and a batch job that runs periodically to see if the PHP program is running, and if not, launch it. 

 

I would like to avoid external programs if possible. In the current Oracle environment, there are potentially multiple schemas on a server in which processing can be active. And processing can be started, monitored and stopped from a client application. And only for the schema with which the application is connected.

 

BR

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 по дате отправления:

Предыдущее
От: Dirk Mika
Дата:
Сообщение: Re: How to run a task continuously in the background
Следующее
От: Brent Wood
Дата:
Сообщение: Re: How to run a task continuously in the background