Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Commit f46d3c9

Browse files
authored
Remove comments from the job messages
1 parent 363c315 commit f46d3c9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

run.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import print_function
22
import os, sys
33
import boto3
4-
import copy
54
import datetime
65
import json
76
import time
@@ -355,8 +354,7 @@ def submitJob():
355354

356355
# Step 1: Read the job configuration file
357356
jobInfo = loadConfig(sys.argv[2])
358-
templateMessage = copy.deepcopy(jobInfo)
359-
del templateMessage["groups"]
357+
templateMessage = {eachkey:jobInfo[eachkey] for eachkey in jobInfo.keys() if eachkey != "groups" and "_comment" not in eachkey}
360358

361359
# Step 2: Reach the queue and schedule tasks
362360
print('Contacting queue')

0 commit comments

Comments
 (0)