[comixed] Comics never completing import

  • From: "Darryl L. Pierce" <mcpierce@xxxxxxxxx>
  • To: comixed@xxxxxxxxxxxxx
  • Date: Fri, 28 Aug 2020 08:53:21 -0400

I've pushed a change up for PR [1] that should address this issue.

When tasks like importing and processing a comic are created, they're first
put into the database to queue then up. Then they are popped out and
executed in order. Previously they were pulled out of the database, the
record deleted, and then they were executed. Which is fine until the server
exits before a task finishes, since then the task couldn't be restarted
because it was lost.

With this change, the task is loaded and executed and THEN it's deleted
from the database. So if you're importing a comic and kill the server
halfway through, then the next time you start the server the task is still
there in the database and can be rerun.

Hoping this fixes a lot of the headaches bareheiny's been having. :D

-- 
Darryl L. Pierce <mcpierce@xxxxxxxxx>
"Le centre du monde est partout." - Blaise Pascal
"Let's try and find some point of transcendence and leap together." - Gord
Downie

Other related posts: