enhancing CLI usage of starting a cluster

This commit is contained in:
Ari Brown 2023-11-16 10:44:12 -05:00
parent fe06b6b808
commit 902302c9df
2 changed files with 4 additions and 3 deletions

View file

@ -1,3 +1,4 @@
import sys
import minerva
from minerva.pier import Pier
@ -32,7 +33,7 @@ pier = m.pier(subnet_id = "subnet-05eb26d8649a093e1", # project-subnet-public
key_pair = ("Ari-Brown-HAY", "~/.ssh/Ari-Brown-HAY.pem"),
iam = "Minerva")
cluster = pier.cluster(scheduler, worker, num_workers=5)
cluster = pier.cluster(scheduler, worker, num_workers=sys.argv[1])
cluster.start()
print(cluster.public_location)