Page 1 of 1

New WU after Finishing

Posted: Sun Apr 19, 2020 8:42 am
by NathanJanssens
Hi,

I am going to be on the move for some time later today, so I hit the Finish button to finish up the work that was busy. At that time, my two GPU slots were "Ready" and my CPU slot was at 80-something %.

A bit later, I noticed that the client did download a WU for the GPU slot.
I don't think that should be possible....

Code: Select all

08:14:55:FS00:Finishing
08:14:55:FS01:Finishing
08:14:55:FS02:Finishing

08:32:10:WU04:FS01:Connecting to 65.254.110.245:8080
08:32:10:WARNING:WU04:FS01:Failed to get assignment from '65.254.110.245:8080': No WUs available for this configuration
08:32:10:WU04:FS01:Connecting to 18.218.241.186:80
08:32:11:WU04:FS01:Assigned to work server 128.252.203.10
08:32:11:WU04:FS01:Requesting new work unit for slot 01: READY gpu:0:Navi 14 [Radeon RX 5500/5500M / Pro 5500M] from 128.252.203.10
08:32:11:WU04:FS01:Connecting to 128.252.203.10:8080
08:32:32:WARNING:WU04:FS01:WorkServer connection failed on port 8080 trying 80
08:32:32:WU04:FS01:Connecting to 128.252.203.10:80
08:33:31:WU04:FS01:Downloading 29.59MiB
08:33:37:WU04:FS01:Download 39.71%
08:33:43:WU04:FS01:Download 86.40%
08:33:44:WU04:FS01:Download complete
08:33:44:WU04:FS01:Received Unit: id:04 state:DOWNLOAD error:NO_ERROR project:11761 run:0 clone:7765 gen:28 core:0x22 unit:0x0000003580fccb0a5e7001bf4012a812
08:33:44:WU04:FS01:Starting
I deleted the lines from irrelevant FS to make it more readable.

Re: New WU after Finishing

Posted: Sun Apr 19, 2020 9:09 am
by PantherX
Finish means that complete a WU and then don't download another.

In your case, the Slot was already in the process of downloading a WU thus, when you clicked Finish, it means that it won't download a new WU (the current attempts are counted as an existing WU). For your case, you may want to select Pause which will stop any attempts to get a new WU. Keep in mind that if a new WU is being downloaded, it will not be terminated when you selected Pause. Instead, it will download the WU and sit in a paused manner.

Re: New WU after Finishing

Posted: Sun Apr 19, 2020 9:21 am
by foldy
Sounds like a FahClient bug: A folding slot which has no work unit and gets the finish call should stop trying to download a new work unit. The finish call has to pause the ready slots waiting for work unit.
https://github.com/FoldingAtHome/fah-issues/issues/1399

Re: New WU after Finishing

Posted: Sun Apr 19, 2020 9:26 am
by NathanJanssens
So let's say all my slots are idle due to lack of WU, I hit Finish and leave my computer. It's possible that 3 days later, I come back and find the client folding anyway? That doesn't sound right. (I'm not saying that that is exactly what I would do, it's just a hypothetical situation.)

The whole idea behind the Finish button, I guess, is that you can finish whatever is actively folding now and then not start anything new. If a new download still starts afterwards, it could be hours and hours before finally all slots are idle.

Luckily, in this case, it looks like the WU will be finished fairly quickly and I can move after it's done. My reason for not preferring to pause while folding is points on one hand and just not taking more time than necessary to finish a WU on the other.
So, thanks for the explanation, I understand now. I just don't agree however, but I'll remember to explicitly pause idle slots next time.

Re: New WU after Finishing

Posted: Sun Apr 19, 2020 10:50 am
by PantherX
It seems that when the Finish feature was designed, there was never any shortage of WUs so would be assigned one within 1 or 2 attempts. Hence the Finish feature assumed you would always be having a WU folding. This is a new user-case (inability to get consistently assigned WUs within 2 attempts) and let's see what the developers have to say about that :)

Re: New WU after Finishing

Posted: Sun Apr 19, 2020 11:01 am
by NathanJanssens
That is actually a really good point. I hadn't thought about that. :)