cygnusxi / hfm-net

Automatically exported from code.google.com/p/hfm-net
2 stars 0 forks source link

If client stops (i.e. -oneunit) after a unit completes, the unit will not be written to the CompletedUnits.csv file. #177

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

- Start a client with -oneunit and let it run to completion.

The problem here is that I've set this data not to write until the unit
goes into history and another unit has been downloaded and progress begun.
 In one regard this is Ok, I want the unit to be completed and the
FinishedTime pulled from the queue.dat.  But in cases where another unit
doesn't come along, this doesn't work.

May need to check several factors.  The client status (possibly Stopped or
Paused), the WorkUnitResult (should be FinishedUnit - only want to write
correctly completed units to the file), and may also need to be able to ask
the WorkUnitCollection class what unit was last written for Client "X". 
The last piece of the puzzle will take some further work as there is
currently no support for reading this data back into memory, just support
for appending it to the current file.  This data would need inspected on
startup to determine where HFM "left off" so in the case of a -oneunit
client, the data doesn't get written over and over again on each subsequent
start of HFM.

More to think about... this isn't going to stop the 0.4.9 release, as the
current situation is much better than 0.4.8, stop I'd like to resolve this
and maybe add some features to inspect this CompletedUnits file in 0.5.0.

Last Build Tested

- v0.4.9.154

Original issue reported on code.google.com by harlam357 on 10 Mar 2010 at 7:33

GoogleCodeExporter commented 8 years ago
Migrated to the 0.6 Milestone.

Original comment by harlam357 on 13 May 2010 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by harlam357 on 13 May 2010 at 11:38

GoogleCodeExporter commented 8 years ago

Original comment by harlam357 on 6 Aug 2010 at 1:31

GoogleCodeExporter commented 8 years ago
Marked Fixed for Revision 237.

Superseded by the WU History Database.

Original comment by harlam357 on 9 Oct 2010 at 8:11