*FIRST POST* while cluster.wait()

Questions, issues regarding dispy / pycos

Moderator: admin

Post Reply
odo2063
Posts: 11
Joined: Sat Jan 23, 2021 9:27 am

*FIRST POST* while cluster.wait()

Post by odo2063 »

Hi!

Is it possible to do something like

Code: Select all

while cluster.wait():
    time.sleep(10)
    cluster.print_status()
with dispy?
Giri
Site Admin
Posts: 58
Joined: Sun Dec 27, 2020 5:35 pm

Re: *FIRST POST* while cluster.wait()

Post by Giri »

I haven't tried it, but something like this should be possible:

Code: Select all

while 1:
    cluster.print_status()
    if not cluster.wait(timeout=10):
        break
I don't remember if "not" in condition is required or not.
Post Reply