mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 11:24:18 +00:00
rename functions to indicate that they should not be imported directly
This commit is contained in:
parent
5f05cedf5e
commit
5fc3015bf1
@ -8,9 +8,9 @@ import shutil
|
|||||||
|
|
||||||
def task():
|
def task():
|
||||||
with scheduler.app.app_context():
|
with scheduler.app.app_context():
|
||||||
handle_corpora()
|
_handle_corpora()
|
||||||
|
|
||||||
def handle_corpora():
|
def _handle_corpora():
|
||||||
corpora = Corpus.query.all()
|
corpora = Corpus.query.all()
|
||||||
for corpus in [x for x in corpora if x.status == CorpusStatus.SUBMITTED]:
|
for corpus in [x for x in corpora if x.status == CorpusStatus.SUBMITTED]:
|
||||||
_create_build_corpus_service(corpus)
|
_create_build_corpus_service(corpus)
|
||||||
|
@ -17,9 +17,9 @@ import shutil
|
|||||||
|
|
||||||
def task():
|
def task():
|
||||||
with scheduler.app.app_context():
|
with scheduler.app.app_context():
|
||||||
handle_jobs()
|
_handle_jobs()
|
||||||
|
|
||||||
def handle_jobs():
|
def _handle_jobs():
|
||||||
jobs = Job.query.all()
|
jobs = Job.query.all()
|
||||||
for job in [x for x in jobs if x.status == JobStatus.SUBMITTED]:
|
for job in [x for x in jobs if x.status == JobStatus.SUBMITTED]:
|
||||||
_create_job_service(job)
|
_create_job_service(job)
|
||||||
|
Loading…
Reference in New Issue
Block a user