mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-26 03:14:19 +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():
|
||||
with scheduler.app.app_context():
|
||||
handle_corpora()
|
||||
_handle_corpora()
|
||||
|
||||
def handle_corpora():
|
||||
def _handle_corpora():
|
||||
corpora = Corpus.query.all()
|
||||
for corpus in [x for x in corpora if x.status == CorpusStatus.SUBMITTED]:
|
||||
_create_build_corpus_service(corpus)
|
||||
|
@ -17,9 +17,9 @@ import shutil
|
||||
|
||||
def task():
|
||||
with scheduler.app.app_context():
|
||||
handle_jobs()
|
||||
_handle_jobs()
|
||||
|
||||
def handle_jobs():
|
||||
def _handle_jobs():
|
||||
jobs = Job.query.all()
|
||||
for job in [x for x in jobs if x.status == JobStatus.SUBMITTED]:
|
||||
_create_job_service(job)
|
||||
|
Loading…
Reference in New Issue
Block a user