Replace time.time_ns() call with time.time() to make compatible with older python3

This commit is contained in:
Garrett Mills 2021-08-16 19:27:57 -05:00
parent f219df37d1
commit b7fda453ab

View File

@ -31,7 +31,7 @@ if not os.path.exists(os.path.join(JOB_DEFS, data['job'] + '.job')):
sys.exit(1)
# This is the name of the file that will be written to the queued jobs
file_name = str(time.time_ns()) + '.' + str(job_name) + '.json'
file_name = str(int(time.time() * 100000)) + '.' + str(job_name) + '.json'
# Write the job data to the queue file
with open(os.path.join(QUEUED_JOBS, file_name), 'w') as out_file: