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 "