Re: cfthread running condition?

2008-08-30 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-30 Thread Rick Faircloth
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 condition? Silly question - why not just run

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.

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. cfthread action='run' name='t1' do something /cfthread cfloop index='i'

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 Rick Faircloth
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 thread (set the action to run) then have

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
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 ending of a previous thread? It should be possible using the thread.status feature. You would create a thread then watch the status until

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 cfscript.../cfscript code. This is not a requirment of threads or anything,

Re: cfthread running condition?

2008-08-29 Thread Joey Krabacher
was finished before processing. But the description 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

RE: cfthread running condition?

2008-08-29 Thread Rick Faircloth
] 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 thread waits for the thread or threads being joined to finish. If any thread does not finish by the specified time

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

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 Subject: RE: cfthread running condition? I'm

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 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