add a delay to keep from overwhelming the card reader port

This commit is contained in:
Gregory Gauthier 2026-02-06 16:50:30 +00:00
parent 45146e964c
commit 28f9247b95

View File

@ -4,6 +4,7 @@ import sys
import subprocess import subprocess
import tempfile import tempfile
import os import os
import time
# Force temp files into a folder inside your project (fully owned by you) # Force temp files into a folder inside your project (fully owned by you)
custom_temp_dir = os.path.join(os.getcwd(), "tmp") custom_temp_dir = os.path.join(os.getcwd(), "tmp")
@ -170,5 +171,10 @@ if __name__ == "__main__":
if upload_source(local_file, dataset_name, member_name, mvshost) != 0: if upload_source(local_file, dataset_name, member_name, mvshost) != 0:
sys.exit(1) sys.exit(1)
# Wait between submissions to avoid overwhelming the card reader
print("Waiting 3 seconds before submitting compile job...")
time.sleep(3)
# Step 2: Submit JCL job # Step 2: Submit JCL job
submit_jcl(job, mvshost) exit_code = submit_jcl(job, mvshost)
sys.exit(exit_code)