How about this?

<cftry>
  <cfinclude template="job1.cfm">
  <cfcatch>
    Job 1 errored
  </cfcatch>
</cftry>

<cftry>
  <cfinclude template="job2.cfm">
  <cfcatch>
    Job 2 errored
  </cfcatch>
</cftry>

<cftry>
  <cfinclude template="job3.cfm">
  <cfcatch>
    Job 3 errored
  </cfcatch>
</cftry>

etc...

It doesn't have to be a cfinclude.  You can be invoking a method of some
service or something.  Really the point was if you want code on a page
to execute regardless of the success or failure of coder prior, use try
catch.

Alternatively, if the jobs are not dependent on the previous ones (and
it sounds like they aren't) and can run at the same time used cfthread
to kick them off simultaneously and don't join back to them.  Then it
won't matter if they will get done sooner too.

~Brad




-------- Original Message --------
Subject: Inoke/Submit
From: patrick buch <[email protected]>
Date: Tue, January 19, 2010 1:04 pm
To: cf-talk <[email protected]>


I'm thinking of something like this....

Invoke/Submit Job 1 (if finished)
Invoke/Submit Job 2 (if job 1 finished, start job 2)
Invoke/Submit Job 3 (if job 2 finished, start job 3)



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329794
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to