Skip to content
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

Update stateless-manager.py #916

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

BIG-BELL-CHEN
Copy link

When users use "view" to view a task, they often use "Ctrl + C" to end it, which will cause the "sleep" timer to terminate. I've perfected it.

When users use "view" to view a task, they often use "Ctrl + C" to end it, which will cause the "sleep" timer to terminate. I've perfected it.
@creamsoup
Copy link

sorry, this seems perfectly bad IMO.
Ctrl-C is SIGTERM.
why do you need to stop manager to terminate view? stop is associated with start. not view.

@BIG-BELL-CHEN
Copy link
Author

sorry, this seems perfectly bad IMO.
Ctrl-C is SIGTERM.
why do you need to stop manager to terminate view? stop is associated with start. not view.

I repeated this error. This is the log.

=============================================================================================
num job k plot_id pid start elapsed_time phase phase_times progress temp_size

1 plotting-192.168.7.116 32 c641aae 1535315 2021-05-27 10:30:41 00:00:03 1 0.58% 1 GiB

Manager Status: Running

=====================================================================
type drive used total % # temp dest

t/- /chia-cache 0.00TiB 4.62TiB 0.0% 1/- 1
-/d /chia-repo 5.35TiB 7.22TiB 78.0% -/1 1

CPU Usage: 10.2%
RAM Usage: 1.72/125.64GiB(2.4%)

Plots Completed Yesterday: 0
Plots Completed Today: 0

Next log check at 2021-05-27 10:30:55

^CStopped view.
ell@ell:/create-plots-scp$
ell@ell:
/create-plots-scp$ tail -f Swar-Chia-Plot-Manager/debug.log
2021-05-27 00:05:06 [INFO]: /chia-repo
2021-05-27 00:05:06 [INFO]: Free space after checking active jobs: {'/chia-repo': 9058567052288}
2021-05-27 00:05:06 [INFO]: Checking to queue work for job: plotting-192.168.77.116
2021-05-27 00:05:06 [INFO]: Total jobs in phase 1: 3
2021-05-27 00:05:06 [INFO]: Waiting for job stagger, skipping. Next allowable time: 2021-05-27 00:09:58.974749
2021-05-27 00:05:06 [INFO]: Sleeping for 60 seconds.
Traceback (most recent call last):
File "/home/dell/create-plots-scp/Swar-Chia-Plot-Manager/stateless-manager.py", line 109, in
time.sleep(manager_check_interval)
KeyboardInterrupt

@creamsoup
Copy link

can you define problem first? i am not sure what you are trying to solve.

@swar
Copy link
Owner

swar commented May 27, 2021

I also do not see what this is trying to solve because stateless-manager should be kicked off in the background anyways so you wouldn't need to keyboard interrupt it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants