mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Remove debog print statements
This commit is contained in:
parent
f3f6612a57
commit
5427698a47
@ -21,16 +21,11 @@ def check_corpora():
|
||||
|
||||
|
||||
def check_jobs():
|
||||
print('check_jobs()')
|
||||
jobs = Job.query.all()
|
||||
print([job.status for job in jobs])
|
||||
for job in filter(lambda job: job.status == 'submitted', jobs):
|
||||
print('pre create_job_service({})'.format(job))
|
||||
job_utils.create_job_service(job)
|
||||
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)
|
||||
for job in filter(lambda job: job.status == 'canceling', jobs):
|
||||
print('pre remove_job_service({})'.format(job))
|
||||
job_utils.remove_job_service(job)
|
||||
db.session.commit()
|
||||
|
@ -11,7 +11,6 @@ import os
|
||||
|
||||
|
||||
def create_job_service(job):
|
||||
print('create_job_service({})'.format(job))
|
||||
cmd = '{} -i /files -o /files/output'.format(job.service)
|
||||
if job.service == 'file-setup':
|
||||
cmd += ' -f {}'.format(secure_filename(job.title))
|
||||
@ -42,7 +41,6 @@ def create_job_service(job):
|
||||
else:
|
||||
job.status = 'queued'
|
||||
finally:
|
||||
print('Sending email to {}'.format(job.creator.email))
|
||||
msg = create_message(
|
||||
job.creator.email,
|
||||
'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)
|
||||
db.session.add(job_result)
|
||||
finally:
|
||||
print('Sending email to {}'.format(job.creator.email))
|
||||
msg = create_message(
|
||||
job.creator.email,
|
||||
'Status update for your Job "{}"'.format(job.title),
|
||||
|
Loading…
Reference in New Issue
Block a user