nopaque/app/tasks/__init__.py

15 lines
345 B
Python
Raw Normal View History

from .corpus_utils import CheckCorporaMixin
from .job_utils import CheckJobsMixin
from ..import db, socketio
2020-11-09 15:14:19 +00:00
import docker
class TaskRunner(CheckCorporaMixin, CheckJobsMixin):
def __init__(self):
self.docker = docker.from_env()
def run(self):
self.check_corpora()
self.check_jobs()
db.session.commit()