zzyycc / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

COMPLETE Event doesnt fire with error #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Flash 10 bulk-loader trunk
2. With the last image not found in a group of 10 image download it doesn't
give the COMPLETE Event
3.

What is the expected output? What do you see instead?
When batch is complete even with Error in the list it still fires off the
COMPLETE event

What version of the product are you using? On what operating system?
Trunl

Please provide any additional information below.

Original issue reported on code.google.com by car...@gmail.com on 22 Dec 2008 at 10:06

GoogleCodeExporter commented 8 years ago
I concur with this - as far as I can tell there's no way to determine whether 
the 
instance is done working.  I've had to total up the number of adds and compare 
it to 
the successes + failures to figure out whether I can move on with my processing.
If there's another event or even a property I could check to figure out if the 
loader has finished with its batch of work, that would be dandy.

Original comment by Debin...@gmail.com on 26 Dec 2008 at 4:35

GoogleCodeExporter commented 8 years ago
Hi Folks.

I agree this might create some confusion, and should probably documented better.

But the COMPLETE event means all is well and done. This means that client code 
should add COMPLETE and 
ERROR listeners. On the error handler you can do whatever you need (such as 
remove failed items) and then 
the complete event will fire.

Cheers
Arthur Debert

Original comment by debert on 18 Jan 2009 at 3:18

GoogleCodeExporter commented 8 years ago
Oops, and it appears that I did have a bug right in.

The comment above still applys, but the bug fixed on revision 247 should make 
the outline above work as 
expected.

Cheers
Arthur Debert

Original comment by debert on 18 Jan 2009 at 4:24