pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: David Durst <ddurst@larubber.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Scheduling Events?
Date: Fri, 24 Jan 2003 07:29:44 -0600
Message-ID: <20030124132944.GA24169@wolff.to> (raw)
In-Reply-To: <41705.216.86.192.34.1043397938.squirrel@www.la-rubber.com>
References: <39409.216.86.192.34.1043367412.squirrel@www.la-rubber.com>
	<Pine.LNX.4.44.0301240913220.11997-100000@matrix.gatewaynet.com>
	<41705.216.86.192.34.1043397938.squirrel@www.la-rubber.com>

On Fri, Jan 24, 2003 at 00:45:38 -0800,
  David Durst <ddurst@larubber.com> wrote:
> 
> I can't be sure that cron will always be up when the DB is up,
> so lets say crond goes down for some random reason (User, System error,
> Etc..)

One option would be to run the cron job fairly often and have it check
if there are any tasks that need to be done. If there are it does them in
a transaction which also makes some update that indicates that the task
has been done.

The other option would be that the process(es) that use the monthly
updates, check to see that they have been done as part of their
transaction and if not do the update first before proceeding.



view thread (13+ messages)  latest in thread

Message-ID: <20030124132944.GA24169@wolff.to>
Permalink:  ../20030124132944.GA24169@wolff.to/
Also on:    postgresql.org/message-id/20030124132944.GA24169@wolff.to

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, ddurst@larubber.com
  Subject: Re: Scheduling Events?
  In-Reply-To: <20030124132944.GA24169@wolff.to>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox