Chia-Plot-Status icon indicating copy to clipboard operation
Chia-Plot-Status copied to clipboard

Feature: Is it possible to add PID?

Open zeroarst opened this issue 3 years ago • 5 comments

First thank you for developing this great tool !

Just one thing is good to have is the PID. If we can see each plot's PID then it is easier for us to use it to delete the plot from task manager.

A clue will be those PIDs are located in C:\Users\UserName\.chia\mainnet\run. Each plots has a PID file associated.

zeroarst avatar May 13 '21 13:05 zeroarst

Will look into it

grayfallstown avatar May 13 '21 15:05 grayfallstown

The filenames are basically random UUIDs and the contents of those files are only the pid itself and a line break:

chia-plots-create8e11fe5d-8a49-4588-bf32-7f2f23181bc0.pid

5536

There is no way to link a pid to a plot log with that information alone.

It could be possible to iterate all running windows processes and compare the settings in the chia parameters with the values in the plot logs and try to find a single match that way.

This would only work for plotting processes running on the same machine as Chia Plot Status and not for remote Plotting Rigs.

The bigger problem is that anti virus software is not a big fan programs iterating through all running processes the user has access to and Chia Plot Status already has a history of false positives

I will make a pull request to chiapos writing the PID to the logfile, but even if it gets merged it will take a while to get merged and probably even longer to become part of a chia-blockchain release.

grayfallstown avatar May 14 '21 07:05 grayfallstown

Pull request to add process id to chiapos logs created. Will implement this feature once it is part of a chia-blockchain release.

grayfallstown avatar May 14 '21 07:05 grayfallstown

Just got merged into chiapos main. Waiting for it to get into an official chia-blockchain release.

grayfallstown avatar May 24 '21 18:05 grayfallstown

PID will be in the next version. chia-plotter already has this in both the linux and the windows version. chiapos (official plotter) does have this in their repository, but not in the official chia release, but a lot of people use pechy which already has it.

grayfallstown avatar Jun 15 '21 16:06 grayfallstown