Page 1 of 1

Losing WUs on restart?

Posted: Sun Feb 16, 2025 12:50 pm
by Breach
Hey there, using the latest client, Windows 11 and noticed the following:

a) If I restart system while folding, when the PC starts again the old WU is dumped and a new one is picked up (expected: pause and resume).
b) If I pause folding and restart immediately, the WU remains 'paused' but then FAH picks up a new WU (expected: resume the previous WU).

Am I missing something here...?

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 3:01 pm
by muziqaz
Make sure you are on the latest Fahclient version, which is 8.4.9.
And then before rebooting pause all the work, and don't rush rebooting immediately, do it in normal speed. Windows reboot kills fahclient too quickly for it to save current state

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 3:55 pm
by Breach
Yes, I'm using 8.4.9. Thanks for confirming current behavior, but then it seems the new client didn't implement something important, which the old, desktop one was handling fine.

And it's really a couple of lines of code to block a restart in Win32 through the API (ShutdownBlockReasonCreate) until the state is saved.

Hope it will be added.

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 3:59 pm
by muziqaz
The issue is not by choice, and we have been trying to fix it, and it is not that simple ;)

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 4:12 pm
by Breach
OK, I understand it is a known issue on the radar and that apparently it may not be straightforward to address (and indeed, I haven't obviously seen your codebase). Hope you find a solution - it would avoid wasting valuable compute time in such situations.

Cheers

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 4:18 pm
by muziqaz
Code is open source at github :)

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 4:30 pm
by Joe_H
Breach wrote: Sun Feb 16, 2025 3:55 pm Yes, I'm using 8.4.9. Thanks for confirming current behavior, but then it seems the new client didn't implement something important, which the old, desktop one was handling fine.

And it's really a couple of lines of code to block a restart in Win32 through the API (ShutdownBlockReasonCreate) until the state is saved.

Hope it will be added.
Actually there were complaints with the prior v7 client under Windows doing the same thing, not exiting fully before the Windows reboot killed the process before the code had exited. So you may not have run into the issue on your Windows systems, but others did.

Re: Losing WUs on restart?

Posted: Sun Feb 16, 2025 9:51 pm
by calxalot