Re: How to run a task continuously in the background
От | Tim Clarke |
---|---|
Тема | Re: How to run a task continuously in the background |
Дата | |
Msg-id | 385d87c0-2205-1499-23f2-20fe20159823@minerva.info обсуждение исходный текст |
Ответ на | 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
|
Список | pgsql-general |
On 12/07/2019 08:08, lilu wrote: > >> 在 2019年7月12日,下午1:06,Dirk Mika <Dirk.Mika@mikatiming.de >> <mailto:Dirk.Mika@mikatiming.de>> 写道: >> >> 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 But using a specific program that is good at its job is the unix way and better for it imho. If you have a good scheduler why re-write another one into every application? Tim Clarke IT Director Direct: +44 (0)1376 504510 | Mobile: +44 (0)7887 563420 Telephone: Witham: +44(0)1376 503500 | London: +44 (0)20 3009 0853 | Frankfurt: +49 (0)69 7191 6000 | Hong Kong: +852 58031687 | Toronto: +1 647 503 2848 Web: https://www.manifest.co.uk/ Minerva Analytics Ltd - A Solactive Company 9 Freebournes Court | Newland Street | Witham | Essex | CM8 2BL | United Kingdom ________________________________ Copyright: This e-mail may contain confidential or legally privileged information. If you are not the named addressee youmust not use or disclose such information, instead please report it to admin@minerva.info<mailto:admin@minerva.info> Legal: Minerva Analytics is the trading name of: Minerva Analytics Ltd: Registered in England Number 11260966 & The ManifestVoting Agency Ltd: Registered in England Number 2920820 Registered Office at above address. Please Click Here https://www.manifest.co.uk/legal/for further information.
В списке pgsql-general по дате отправления: