From db056e08aa15841d909e13eed19b145e366dcfe3 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Thu, 21 Jan 2021 00:58:02 +1100 Subject: [PATCH] remove pa_job_manager table, its not needed, and fixed bug where Gen hash optimisation did not finish job when it shoud have --- pa_job_manager.py | 41 ++++++----------------------------------- 1 file changed, 6 insertions(+), 35 deletions(-) diff --git a/pa_job_manager.py b/pa_job_manager.py index eee2ed7..7dbb5dd 100644 --- a/pa_job_manager.py +++ b/pa_job_manager.py @@ -51,9 +51,6 @@ session = Session() Base = declarative_base() -# global for us to keep state / let front-end know our state -pa_eng=None - ################################################################################ # Class describing File in the database, and via sqlalchemy, connected to the DB as well # This has to match one-for-one the DB table @@ -120,20 +117,9 @@ class Settings(Base): ################################################################################ # classes for the job manager: -# PA_JobManager overall status tracking), -# Job (and Joblog) for each JOb, and +# Job (and Joblog, JobExtra) for each Job, and # PA_Jobmanager_fe_message (to pass messages to the front-end web) ################################################################################ -class PA_JobManager(Base): - __tablename__ = "pa_job_manager" - id = Column(Integer, Sequence('pa_job_manager_id_seq'), primary_key=True) - state = Column(String) - num_active_jobs = Column(Integer) - num_completed_jobs = Column(Integer) - - def __repr__(self): - return "".format( self.id, self.state, self.num_active_jobs, self.num_completed_jobs ) - class Joblog(Base): __tablename__ = "joblog" id = Column(Integer, Sequence('joblog_id_seq'), primary_key=True ) @@ -182,21 +168,14 @@ class PA_JobManager_FE_Message(Base): def __repr__(self): return "