Esempio n. 1
0
 def pause_task(self):
     scheduler.pause_job(self.creation_time)
     self.status = 'suspended'
     db.session.commit()
Esempio n. 2
0
 def pause(self):
     scheduler.pause_job(self.creation_time)
     self.status = 'Pause'
     db.session.commit()