Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions ci/batch/submit-job.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import argparse
from datetime import datetime
import random
import re
import sys
import time
from datetime import datetime

import boto3
from botocore.compat import total_seconds
Expand Down Expand Up @@ -91,7 +92,7 @@ def main():
spin = ['-', '/', '|', '\\', '-', '/', '|', '\\']
logGroupName = '/aws/batch/job'

jobName = args.name
jobName = re.sub('[^A-Za-z0-9_\-]', '', args.name)[:128] # Enforce AWS Batch jobName rules
jobQueue = args.job_queue
jobDefinition = args.job_definition
command = args.command.split()
Expand Down