RE: cfthread running condition?

2008-08-30 Thread Rick Faircloth
missing some sort of obvious feedback method when scheduled tasks (and cfthread's, for that matter) are run? Rick > -Original Message- > From: Mark Mandel [mailto:[EMAIL PROTECTED] > Sent: Saturday, August 30, 2008 12:44 AM > To: CF-Talk > Subject: Re: cfthread running condi

Re: cfthread running condition?

2008-08-29 Thread James Holmes
Yeah, I've been wondering why this would use multiple threads when the aim is to deliberately single thread the execution. On Sat, Aug 30, 2008 at 12:44 PM, Mark Mandel wrote: > Silly question - why not just run the executing code you want to fire > to happen at the end of thread 1? It has exactly

Re: cfthread running condition?

2008-08-29 Thread Mark Mandel
Silly question - why not just run the executing code you want to fire to happen at the end of thread 1? It has exactly the same result, there is no need to create a whole new thread, as you can just continue in the one you are in. Mark On Sat, Aug 30, 2008 at 12:26 PM, Dave Watts <[EMAIL PROTECTE

RE: cfthread running condition?

2008-08-29 Thread Dave Watts
> But unlike a "page thread" that's running in a browser, > the "scheduled task page thread" isn't subject to a > timeout, right? Why wouldn't it be? It's just another HTTP request. Dave Watts, CTO, Fig Leaf Software ~| AdobeĀ®

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
But unlike a "page thread" that's running in a browser, the "scheduled task page thread" isn't subject to a timeout, right? > -Original Message- > From: Dave Watts [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2008 7:09 PM > To: CF-Talk

RE: cfthread running condition?

2008-08-29 Thread Dave Watts
> I'm not too sure what constitutes a "page thread". > > Assuming that it's the processing of the .cfm page, then that > wouldn't really apply, I don't think, because I'd be using > these merged templates with multiple threads coded in them as > part of scheduled tasks, which, if I understand c

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
> -Original Message- > From: Joey Krabacher [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2008 4:20 PM > To: CF-Talk > Subject: Re: cfthread running condition? > > In the docs under timeout it says: > 'The number of milliseconds that the current threa

Re: cfthread running condition?

2008-08-29 Thread Joey Krabacher
ht it would work as you > described, > that the joining threads would wait until the thread they were joining > was finished > before processing. But the description makes it sound the other way > around. > > ??? > > Rick > > > -Original Message- >

Re: cfthread running condition?

2008-08-29 Thread Ian Skinner
Rick Faircloth wrote: > Is there a way to break out of the cfscript block once > the status of the first thread, "2_hmls_offices", is "Completed" and go > on to process regular CFML code? There is nothing special about the ... code. This is not a requirment of threads or anything, just a person

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
Original Message- > From: Ian Skinner [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2008 2:08 PM > To: CF-Talk > Subject: Re: cfthread running condition? > > Rick Faircloth wrote: > > Is there a way to make the start of one thread > > conditional upon the en

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
tion makes it sound the other way around. ??? Rick > -Original Message- > From: joey krabacher [mailto:[EMAIL PROTECTED] > Sent: Friday, August 29, 2008 2:02 PM > To: CF-Talk > Subject: Re: cfthread running condition? > > You might be able to kick of the first thre

Re: cfthread running condition?

2008-08-29 Thread Ian Skinner
Rick Faircloth wrote: > Is there a way to make the start of one thread > conditional upon the ending of a previous thread? It should be possible using the thread.status feature. You would create a thread then watch the status until it reports "completed" then start the next thread. Don't have a

Re: cfthread running condition?

2008-08-29 Thread joey krabacher
You might be able to kick of the first thread (set the action to run) then have a list or something that you can loop over and have a "join" cfthread inside the loop with the same name as the first one. Something like this. do something do something I have not tried this,

Re: cfthread running condition?

2008-08-29 Thread Chris Blackwell
This should be pretty simple to achieve. One of the restrictions with threads is that a cfthread can not spawn another cfthread. So your going to need one scheduled task that runs at a suitable interval. It will need to see if theres a thread running and if not, kick off the first thread. Th

cfthread running condition?

2008-08-28 Thread Rick Faircloth
Is there a way to make the start of one thread conditional upon the ending of a previous thread? I want to keep only one thread at a time running and would like to set up a series of threads to run, but only one at a time. I've been doing this with scheduled tasks and emailing completion to mysel