Skip to content

Commit f3209e6

Browse files
committed
fix DASHBOARD bool
1 parent b1cc49f commit f3209e6

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

@@ -747,7 +747,7 @@ def monitor(cheapest=False):
747747
removeClusterIfUnused(monitorcluster, ecs)
748748

749749
# Remove Cloudwatch dashboard if created and cleanup desired
750-
if CREATE_DASHBOARD and CLEAN_DASHBOARD:
750+
if CREATE_DASHBOARD.lower()=='true' and CLEAN_DASHBOARD.lower()=='true':
751751
clean_dashboard(monitorapp)
752752

753753
#Step 6: Export the logs to S3

0 commit comments

Comments
 (0)