Open LecoOliveira opened 1 year ago
Hello, @LecoOliveira! Facing same issue with rocketry version 2.5.1. Killed about an hour to understand what i'm doing wrong. Here my code snippet
@app.setup()
def set_repo(logger=TaskLogger()):
repo = SQLRepo(engine=create_engine(config.SQLALCHEMY_DATABASE_URI),
table="tasks_logs", model=MinimalRecord,
id_field="created",
if_missing="create")
handler = RepoHandler(repo=repo)
handler.setLevel(logging.DEBUG)
logger = logging.getLogger("rocketry.task")
logger.addHandler(handler)
I am using rocketry alongside with FastAPI application factory and my repo has been configured under @app.setup decorator.
Very nice project man!! It's a pleasure to use it im my own project. But i have a little problem. When I run the tasks shows that message on the console:
My code:
I already added the 'repo', am I doing something wrong?
OS: Linux Ubuntu 22.04 LTS Python version 3.10 Additional context
rocketry 2.5.1