ericaltendorf / plotman

Chia plotting manager
Apache License 2.0
913 stars 280 forks source link

Can jobs not be resumed after rebooting? #207

Open erikbaender opened 3 years ago

erikbaender commented 3 years ago

I suspended some jobs because I had to make a change in the UEFI, and they showed up with status STP as expected. After a reboot plotman can't find those jobs anymore, is that a limitation of plotman or did something go wrong on my end?

ericaltendorf commented 3 years ago

Chia doesn't support that. That's a chia issue, not plotman.

On Sat, May 1, 2021, 11:05 locque @.***> wrote:

I suspended some jobs because I had to make a change in the UEFI, and they showed up with status STP as expected. After a reboot plotman can't find those jobs anymore, is that a limitation of plotman or did something go wrong on my end?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ericaltendorf/plotman/issues/207, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARPZIFUTAOJAHD2EREDXILDTLQ7GBANCNFSM436RQFAQ .

altendky commented 3 years ago

As a bit more, suspend/stop is a general Linux feature. A common exercise of this is when people ctrl+z a foreground process to pause it then later fg to bring it back. I'm not sure what other details there are, but in a simple form anyways it just stops giving cpu time to the process. It makes no attempt to serialize the process to disk so it could be recovered after a reboot. I haven't actually done it, but hibernate is the closest idea I've got to being able to recover a plotting process after power off.

BasilHorowt commented 3 years ago

@ericaltendorf @altendky any interest in leaving this open as a far flung feature request? I feel like it is squarely in chia's corner and probably out of scope until they support it themselves and am inclined to close

jwest75674 commented 3 years ago

Hey, I've been working on this issue independantly here: https://github.com/jwest75674/chia-suspend

Not sure that my approach fits into the plotman infrastructure, but maybe it can help show how I managed to acheive suspending the plotting process across system shutdowns?