>- see footer for list info -<
Or set a flag in a server variable so you know if the schedule is running.

Russ

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Simon Baynes
Sent: 08 July 2008 18:02
To: Coldfusion Development
Subject: Re: [CF-Dev] Semaphores in CF

>- see footer for list info -<
Why don't you just use your database? Have a table with some flags in it!

On Tue, Jul 8, 2008 at 5:53 PM, Nick Middleweek
<[EMAIL PROTECTED]> wrote:
>>- see footer for list info -<
> Hello,
>
> Does anyone know if we can use Semaphores?
>
> I have a page being executed from the CF scheduler to do X&Y which will
take
> some time depending on files to process.
>
> I only want the code to run X&Y at one time so if the scheduler kicks the
> code off again while the previous 'process' is running I want the new
> process to gracefully exit.
>
> In 4D I would use a Semaphore. A developer here has said about using
CFLOCK
> and put all code to be executed once between the tags; but I'm a little
> unclear on it's usage...
>
> I am right thinking that I can set the CFLOCK timeout settting to "1" and
> then set throwOnTimeout = "no" so that the new process will wait for one
> second to gain the lock and then drop out naturally without executing any
> code between the CFLOCK tags?
>
> Hope that makes sense.
>
> Cheers,
> Nick
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
>>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>>- Lists hosted by www.Gradwell.com -<
>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>



-- 
Simon Baynes
www.simonbaynes.com
LinkedIn profile:- http://www.linkedin.com/in/simonbaynes

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<



_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to