-
Notifications
You must be signed in to change notification settings - Fork 444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reset progress percentage to last checkpoint when task is initialized #4911
Conversation
@RichardHaselgrove, could you please test? I think this fixes your bug, but I have not had a task large enough to reproduce. An extra set of hands would help. Once one of us has verified that this works, I will mark as ready to review. |
I'd forgotten about that one! Unfortunately, my screenshot doesn't identify the Einstein task in question - it may not be active at the moment. But I don't have many Windows 10 machines. I'll search through them in the morning, but it may take a little time. |
No rush, I understand this is a rare case. This can just sit here until someone can confirm it solves the problem. |
Thanks for the report. The pseudo progress is strange. Let me dig into that more and see what I come up with. To be continued... |
@RichardHaselgrove, can you clarify two things:
|
I think this helps, thank you. I'll start digesting this. I discovered last night that the tasks are NOT suspended - they are set to quit instead. I think that is the red herring that we assumed. I think the description for these tasks would be more accurate to say "Waiting to run - not enough memory". |
@RichardHaselgrove, is there an <elapsed_time> in active task? |
I gave you the whole thing, so no. I'm using manual suspend/resume for these tests, because it's quicker and easier than finessing the memory allocation. The status messages, including in the Event Log, are appropriate for my actions, including whether or not the app was removed from memory. |
If you feel I was questioning if you were taking appropriate actions, that was not my intent. I'm just trying to get a feel for what is happening. All I was trying to say earlier is when I walk the code, a task is told to quit when there is not enough memory to run it, which is different (I think), from the amount of memory BOINC can use when the PC is idle/active. This does help, let me see what I can dig up now. Thanks! |
@RichardHaselgrove, try it now. I tested this and it appears to work, but I don't think I have the same conditions as you do. I changed my memory preferences to a low value to force my tasks to wait for memory, then I would update the preferences again to my original memory settings. The percentage completed appeared to reset back to zero, but progress did start increasing around the 40 second mark. I think this is because the task is not as large as the ones you are testing with, though. Let me know what you find and thank you for helping. |
OK, I've got the new artifact, but no tasks at the moment. As you say, I'm trying it out on bigger tasks, and one machine is still plodding its way through one from two days ago: 12-Sep-2022 23:19:56 [World Community Grid] [checkpoint] result ARP1_0024635_128_0 checkpointed Seven out of eight completed - should be ready for a new-start test in about five hours! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoids presenting inaccurate information to users.
Looks good to me. Thanks you for the fix |
Fixes #3430
Description of the Change
When a task is initialized (or resuming computation), the progress percentage is updated to the progress percentage of the last checkpoint. This happens to be 0 if the task has not reached a checkpoint.
Alternate Designs
None.
Release Notes
Progress percentage is reset to 0 for tasks restarting with pseudo-progress.