This branch with celery async workers has no code errors, but running a GPT thread on the celery worker causes a SIGFAULT failure. Need to try this on a server instead of my local machine to see if it will run without failing. If it still fails, then I need to separate my async tasks and the flask app with the tasks dumping into the db and flask just pulling out of the DB.
This commit is contained in:
8
project/models.py
Normal file
8
project/models.py
Normal file
@ -0,0 +1,8 @@
|
||||
from datetime import datetime
|
||||
|
||||
from .extensions import db
|
||||
|
||||
class Result(db.Model):
|
||||
id = db.Column(db.Integer, primary_key=True)
|
||||
text = db.Column(db.String(100), nullable=False)
|
||||
date_created = db.Column(db.DateTime, default=datetime.utcnow)
|
||||
Reference in New Issue
Block a user