Remove debog print statements

This commit is contained in:
Patrick Jentsch 2020-11-13 13:54:07 +01:00
parent f3f6612a57
commit 5427698a47
2 changed files with 0 additions and 8 deletions

View File

@ -21,16 +21,11 @@ def check_corpora():
def check_jobs(): def check_jobs():
print('check_jobs()')
jobs = Job.query.all() jobs = Job.query.all()
print([job.status for job in jobs])
for job in filter(lambda job: job.status == 'submitted', jobs): for job in filter(lambda job: job.status == 'submitted', jobs):
print('pre create_job_service({})'.format(job))
job_utils.create_job_service(job) job_utils.create_job_service(job)
for job in filter(lambda job: job.status in ['queued', 'running'], jobs): for job in filter(lambda job: job.status in ['queued', 'running'], jobs):
print('pre checkout_job_service({})'.format(job))
job_utils.checkout_job_service(job) job_utils.checkout_job_service(job)
for job in filter(lambda job: job.status == 'canceling', jobs): for job in filter(lambda job: job.status == 'canceling', jobs):
print('pre remove_job_service({})'.format(job))
job_utils.remove_job_service(job) job_utils.remove_job_service(job)
db.session.commit() db.session.commit()

View File

@ -11,7 +11,6 @@ import os
def create_job_service(job): def create_job_service(job):
print('create_job_service({})'.format(job))
cmd = '{} -i /files -o /files/output'.format(job.service) cmd = '{} -i /files -o /files/output'.format(job.service)
if job.service == 'file-setup': if job.service == 'file-setup':
cmd += ' -f {}'.format(secure_filename(job.title)) cmd += ' -f {}'.format(secure_filename(job.title))
@ -42,7 +41,6 @@ def create_job_service(job):
else: else:
job.status = 'queued' job.status = 'queued'
finally: finally:
print('Sending email to {}'.format(job.creator.email))
msg = create_message( msg = create_message(
job.creator.email, job.creator.email,
'Status update for your Job "{}"'.format(job.title), 'Status update for your Job "{}"'.format(job.title),
@ -97,7 +95,6 @@ def checkout_job_service(job):
job_result = JobResult(filename=job_result, job=job) job_result = JobResult(filename=job_result, job=job)
db.session.add(job_result) db.session.add(job_result)
finally: finally:
print('Sending email to {}'.format(job.creator.email))
msg = create_message( msg = create_message(
job.creator.email, job.creator.email,
'Status update for your Job "{}"'.format(job.title), 'Status update for your Job "{}"'.format(job.title),