rename functions to indicate that they should not be imported directly

This commit is contained in:
Patrick Jentsch 2024-09-26 15:34:52 +02:00
parent 5f05cedf5e
commit 5fc3015bf1
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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)