Skip to content

Commit f150def

Browse files
authored
Merge pull request #21 from DistributedScience/fix20
fix DASHBOARD bool
2 parents e5d7574 + f3209e6 commit f150def

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

run.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from email.mime.multipart import MIMEMultipart
1010
from email.mime.text import MIMEText
1111

12-
CREATE_DASHBOARD = False
13-
CLEAN_DASHBOARD = False
12+
CREATE_DASHBOARD = 'False'
13+
CLEAN_DASHBOARD = 'False'
1414

1515
from config import *
1616

@@ -638,7 +638,7 @@ def startCluster():
638638
print('Spot fleet successfully created. Your job should start in a few minutes.')
639639
print(f"Your monitor file is available at {monitor_file_name}")
640640

641-
if CREATE_DASHBOARD:
641+
if CREATE_DASHBOARD.lower()=='true':
642642
print ("Creating CloudWatch dashboard for run metrics")
643643
create_dashboard(requestInfo)
644644

@@ -752,7 +752,7 @@ def monitor(cheapest=False):
752752
removeClusterIfUnused(monitorcluster, ecs)
753753

754754
# Remove Cloudwatch dashboard if created and cleanup desired
755-
if CREATE_DASHBOARD and CLEAN_DASHBOARD:
755+
if CREATE_DASHBOARD.lower()=='true' and CLEAN_DASHBOARD.lower()=='true':
756756
clean_dashboard(monitorapp)
757757

758758
#Step 6: Export the logs to S3

0 commit comments

Comments
 (0)