Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aokad committed May 21, 2019
1 parent 2af109c commit dc8b47b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/ecsub/submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,12 @@ def check_inputfiles(aws_instance, task_params, cluster_name, payer_buckets, wor
dirs = []
files_rp = []
dirs_rp = []
outputs = []
for task in task_params["tasks"]:
for i in range(len(task)):
if task_params["header"][i]["type"] == "output":
outputs.append(task[i])

if task_params["header"][i]["type"] != "input":
continue

Expand All @@ -243,7 +247,7 @@ def check_inputfiles(aws_instance, task_params, cluster_name, payer_buckets, wor
else:
files.append(path)

regions = check_bucket_location(dirs + files + [work_bucket])
regions = check_bucket_location(dirs + files + [work_bucket] + outputs)

invalid_files = []
invalid_files += check_inputfiles_collect(sorted(list(set(files))), sorted(list(set(dirs))), cluster_name)
Expand Down

0 comments on commit dc8b47b

Please sign in to comment.